git.iko.soy/typeable/http-api-data
on master help sign in
Try to fix doctest for older GHCs
f918e5bNickolay Kudasov
Web/HttpApiData/Internal.hs+1−1
@@ -173,8 +173,8 @@ parseUrlPieceWithPrefix pattern input
173
173
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+-- >>> data BasicAuthToken = BasicAuthToken Text deriving (Show)
176-- >>> :{
177-- >>> :{
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