@@ -1,6 +1,48 @@
1−## path-pieces
1+# http-api-data
3−Defines two typeclasses used for converting Haskell data types to and from route pieces.
3+This package defines typeclasses used for converting Haskell data types to and from HTTP API data.
4−Used in Yesod to automatically marshall data in the request path.
4+
12+>>> parseUrlPiece "False" :: Either Text Bool
14+>>> parseUrlPiece "something else" :: Either Text Bool
15+Left "could not convert: `something else'"
23+>>> parseUrlPiece "452" :: Either Text Int
32+>>> parseHeader "world" :: Either Text String
39+>>> toQueryParam (fromGregorian 2015 10 03)
41+>>> toGregorian <$> parseQueryParam "2016-12-01"
47+Contributions and bug reports are welcome!
6−see http://www.yesodweb.com/ for more information.