git.iko.soy/typeable/http-api-data
on master help sign in
Fix doctest for old GHCs
5fcc4b0Nickolay Kudasov
Web/HttpApiData.hs+1−1
@@ -134,7 +134,7 @@ instance ToHttpApiData () where
134instance ToHttpApiData Char where toUrlPiece = T.singleton
134instance ToHttpApiData Char where toUrlPiece = T.singleton
135
135
136-- |
136-- |
137−-- >>> toUrlPiece (makeVersion [1, 2, 3])
137+-- >>> toUrlPiece (Version [1, 2, 3] [])
138-- "1.2.3"
138-- "1.2.3"
139instance ToHttpApiData Version where
139instance ToHttpApiData Version where
140 toUrlPiece = T.pack . showVersion
140 toUrlPiece = T.pack . showVersion