Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- inConduit :: Monad n => FromJSON a => ConduitT ByteString (ParseResult a) n ()
- data ParseResult x
- = Correct !x
- | InvalidReq
- | ParseErr
- data Res a
- data Req x = Req {}
Documentation
inConduit :: Monad n => FromJSON a => ConduitT ByteString (ParseResult a) n () Source #
Decode from bytestring into a JSON object. Simplified from hackage package: json-rpc
data ParseResult x Source #
Instances
Instances
FromJSON a => FromJSON (Res a) Source # | |
ToJSON (Res Value) Source # | |
Generic (Res a) Source # | |
Show a => Show (Res a) Source # | |
type Rep (Res a) Source # | |
Defined in Control.Internal.Conduit type Rep (Res a) = D1 ('MetaData "Res" "Control.Internal.Conduit" "clplug-0.3.1.0-88NRFjkOHTbCuV3xl0kS7v" 'False) (C1 ('MetaCons "Res" 'PrefixI 'True) (S1 ('MetaSel ('Just "getResBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "getResId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)) :+: C1 ('MetaCons "ErrRes" 'PrefixI 'True) (S1 ('MetaSel ('Just "errMsg") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "errId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value)))) |