Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Receivable r where Source
receive :: ErrorReceivable e => Response ByteString -> Either (APIError e) r Source
useFromJSON :: (FromJSON a, ErrorReceivable e) => Response ByteString -> Either (APIError e) a Source
class ErrorReceivable e where Source
receiveError :: Response ByteString -> Maybe e Source
useErrorFromJSON :: FromJSON a => Response ByteString -> Maybe a Source
eitherDecode :: FromJSON a => ByteString -> Either String a Source
newtype JSONResponse a Source
JSONResponse | |
|
Eq a => Eq (JSONResponse a) | |
Ord a => Ord (JSONResponse a) | |
Read a => Read (JSONResponse a) | |
Show a => Show (JSONResponse a) | |
FromJSON a => FromJSON (JSONResponse a) | |
FromJSON a => Receivable (JSONResponse a) |