Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Receivable r where Source #
receive :: ErrorReceivable e => Response ByteString -> Either (APIError e) r Source #
Instances
useFromJSON :: (FromJSON a, ErrorReceivable e) => Response ByteString -> Either (APIError e) a Source #
class ErrorReceivable e where Source #
receiveError :: Response ByteString -> Maybe e Source #
Instances
ErrorReceivable () Source # | |
Defined in Network.API.Builder.Receive receiveError :: Response ByteString -> Maybe () Source # | |
ErrorReceivable ByteString Source # | |
Defined in Network.API.Builder.Receive | |
ErrorReceivable Value Source # | |
Defined in Network.API.Builder.Receive receiveError :: Response ByteString -> Maybe Value Source # |
useErrorFromJSON :: FromJSON a => Response ByteString -> Maybe a Source #
newtype JSONResponse a Source #
JSONResponse | |
|