Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type CommandResponseBuffer = Map CommandId (MVar (Either ProtocolError Value)) Source #
Config | |
|
class FromJSON a => Event a where Source #
Instances
class (ToJSON cmd, FromJSON (CommandResponse cmd)) => Command cmd where Source #
type CommandResponse cmd :: * Source #
commandName :: Proxy cmd -> String Source #
fromJSON :: Proxy cmd -> Value -> Result (CommandResponse cmd) Source #
Instances
data ProtocolError Source #
PEParse String | Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text |
PEInvalidRequest String | The JSON sent is not a valid Request object |
PEMethodNotFound String | The method does not exist / is not available |
PEInvalidParams String | Invalid method parameter (s) |
PEInternalError String | Internal JSON-RPC error |
PEServerError String | Server error |
PEOther String | An uncategorized error |
Instances
Eq ProtocolError Source # | |
Defined in CDP.Internal.Utils (==) :: ProtocolError -> ProtocolError -> Bool # (/=) :: ProtocolError -> ProtocolError -> Bool # | |
Show ProtocolError Source # | |
Defined in CDP.Internal.Utils showsPrec :: Int -> ProtocolError -> ShowS # show :: ProtocolError -> String # showList :: [ProtocolError] -> ShowS # | |
FromJSON ProtocolError Source # | |
Defined in CDP.Internal.Utils parseJSON :: Value -> Parser ProtocolError # parseJSONList :: Value -> Parser [ProtocolError] # | |
Exception ProtocolError Source # | |
Defined in CDP.Internal.Utils |
Instances
Eq Error Source # | |
Show Error Source # | |
Exception Error Source # | |
Defined in CDP.Internal.Utils toException :: Error -> SomeException # fromException :: SomeException -> Maybe Error # displayException :: Error -> String # |
uncapitalizeFirst :: String -> String Source #