Change newtype to data in doctests (older doctest does not know about newtype)
commitaee4a33dec250dab6017d9d9915ef7350fdf94fa
authorNickolay Kudasov <nickolay.kudasov@gmail.com>
dateSun 11 Oct 2015, 14:15 (11 years ago)
parent2fb1ec6
Web/HttpApiData/Internal.hs+1−1
@@ -174,7 +174,7 @@ parseUrlPieceWithPrefix pattern input
174174-- | Parse given bytestring then parse the rest of the input using @'parseHeader'@.
175175--
176176-- >>> :{
177−-- newtype BasicAuthToken = BasicAuthToken Text deriving (Show)
177+-- data BasicAuthToken = BasicAuthToken Text deriving (Show)
178178-- instance FromHttpApiData BasicAuthToken where
179179-- parseHeader h = BasicAuthToken <$> parseHeaderWithPrefix "Basic " h
180180-- parseQueryParam p = BasicAuthToken <$> parseQueryParam p