git.iko.soy/typeable/http-api-data
on master help sign in
Change newtype to data in doctests (older doctest does not know about newtype)
aee4a33Nickolay Kudasov
Web/HttpApiData/Internal.hs+1−1
@@ -174,7 +174,7 @@ parseUrlPieceWithPrefix pattern input
174-- | Parse given bytestring then parse the rest of the input using @'parseHeader'@.
174-- | Parse given bytestring then parse the rest of the input using @'parseHeader'@.
175--
175--
176-- >>> :{
176-- >>> :{
177−-- newtype BasicAuthToken = BasicAuthToken Text deriving (Show)
177+-- data BasicAuthToken = BasicAuthToken Text deriving (Show)
178-- instance FromHttpApiData BasicAuthToken where
178-- instance FromHttpApiData BasicAuthToken where
179-- parseHeader h = BasicAuthToken <$> parseHeaderWithPrefix "Basic " h
179-- parseHeader h = BasicAuthToken <$> parseHeaderWithPrefix "Basic " h
180-- parseQueryParam p = BasicAuthToken <$> parseQueryParam p
180-- parseQueryParam p = BasicAuthToken <$> parseQueryParam p