Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.API.Builder.Receive
Documentation
class Receivable r where Source #
Minimal complete definition
Methods
receive :: ErrorReceivable e => Response ByteString -> Either (APIError e) r Source #
Instances
Receivable ByteString Source # | |
Receivable Value Source # | |
Receivable Questions Source # | |
Receivable (Response ByteString) Source # | |
FromJSON a => Receivable (JSONResponse a) Source # | |
(Receivable a, Receivable b) => Receivable (a, b) Source # | |
(Receivable a, Receivable b, Receivable c) => Receivable (a, b, c) Source # | |
(Receivable a, Receivable b, Receivable c, Receivable d) => Receivable (a, b, c, d) Source # | |
(Receivable a, Receivable b, Receivable c, Receivable d, Receivable e) => Receivable (a, b, c, d, e) Source # | |
useFromJSON :: (FromJSON a, ErrorReceivable e) => Response ByteString -> Either (APIError e) a Source #
class ErrorReceivable e where Source #
Minimal complete definition
Methods
receiveError :: Response ByteString -> Maybe e Source #
Instances
useErrorFromJSON :: FromJSON a => Response ByteString -> Maybe a Source #
newtype JSONResponse a Source #
Constructors
JSONResponse | |
Fields
|
Instances
Eq a => Eq (JSONResponse a) Source # | |
Ord a => Ord (JSONResponse a) Source # | |
Read a => Read (JSONResponse a) Source # | |
Show a => Show (JSONResponse a) Source # | |
FromJSON a => FromJSON (JSONResponse a) Source # | |
FromJSON a => Receivable (JSONResponse a) Source # | |