@@ -124,6 +124,8 @@ parseBounded reader input = do
124124instance ToHttpApiData () where
125125 toUrlPiece () = "_"
126126
127+instance ToHttpApiData Char where toUrlPiece = T.singleton
128+
127129instance ToHttpApiData Bool where toUrlPiece = showUrlPiece
128130instance ToHttpApiData Double where toUrlPiece = showUrlPiece
129131instance ToHttpApiData Float where toUrlPiece = showUrlPiece
@@ -157,6 +159,12 @@ instance FromHttpApiData () where
157159 parseUrlPiece "_" = return ()
158160 parseUrlPiece s = defaultParseError s
159161
162+instance FromHttpApiData Char where
163+ parseUrlPiece s =
164+ case T.uncons s of
165+ Just (c, s') | T.null s' -> return c
166+ _ -> defaultParseError s
167+
160168instance FromHttpApiData Bool where parseUrlPiece = readEitherUrlPiece
161169instance FromHttpApiData Double where parseUrlPiece = runReader rational
162170instance FromHttpApiData Float where parseUrlPiece = runReader rational