| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.JsonRpc
Documentation
module Data.JsonRpc.Id
module Data.JsonRpc.Request
module Data.JsonRpc.Success
data ErrorStatus #
Constructors
| ParseError | |
| InvalidRequest | |
| MethodNotFound | |
| InvalidParams | |
| InternalError | |
| ServerError !Integer | |
| MethodError !Integer |
Instances
| Eq ErrorStatus # | |
Defined in Data.JsonRpc.Failure | |
| Show ErrorStatus # | |
Defined in Data.JsonRpc.Failure Methods showsPrec :: Int -> ErrorStatus -> ShowS # show :: ErrorStatus -> String # showList :: [ErrorStatus] -> ShowS # | |
| ToJSON ErrorStatus # | |
Defined in Data.JsonRpc.Instances Methods toJSON :: ErrorStatus -> Value # toEncoding :: ErrorStatus -> Encoding # toJSONList :: [ErrorStatus] -> Value # toEncodingList :: [ErrorStatus] -> Encoding # | |
| FromJSON ErrorStatus # | |
Defined in Data.JsonRpc.Instances | |
Instances
| Functor Error # | |
| Foldable Error # | |
Defined in Data.JsonRpc.Failure Methods fold :: Monoid m => Error m -> m # foldMap :: Monoid m => (a -> m) -> Error a -> m # foldr :: (a -> b -> b) -> b -> Error a -> b # foldr' :: (a -> b -> b) -> b -> Error a -> b # foldl :: (b -> a -> b) -> b -> Error a -> b # foldl' :: (b -> a -> b) -> b -> Error a -> b # foldr1 :: (a -> a -> a) -> Error a -> a # foldl1 :: (a -> a -> a) -> Error a -> a # elem :: Eq a => a -> Error a -> Bool # maximum :: Ord a => Error a -> a # minimum :: Ord a => Error a -> a # | |
| Traversable Error # | |
| Eq e => Eq (Error e) # | |
| Show e => Show (Error e) # | |
| Generic (Error e) # | |
| ToJSON e => ToJSON (Error e) # | |
Defined in Data.JsonRpc.Instances | |
| FromJSON e => FromJSON (Error e) # | |
| type Rep (Error e) # | |
Defined in Data.JsonRpc.Instances type Rep (Error e) = D1 (MetaData "Error" "Data.JsonRpc.Failure" "json-rpc-generic-0.2.1.4-4JLlNpruilH5qprenCjKYz" False) (C1 (MetaCons "Error" PrefixI True) (S1 (MetaSel (Just "_code") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ErrorStatus) :*: (S1 (MetaSel (Just "_message") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_data") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe e))))) | |
Instances
toCode :: ErrorStatus -> Integer #
fromCode :: (Integral a, MonadPlus m) => a -> m ErrorStatus #
refineStatus :: MonadPlus m => ErrorStatus -> m ErrorStatus #
serverError :: (Integral a, MonadPlus m) => a -> m ErrorStatus #
methodError :: (Integral a, MonadPlus m) => a -> m ErrorStatus #
emptyError :: Maybe () #
module Data.JsonRpc.Response
module Data.JsonRpc.Generic