| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
CDP.Internal.Utils
Documentation
Constructors
| CommandId | |
Fields
| |
Instances
| Eq CommandId Source # | |
| Ord CommandId Source # | |
| Show CommandId Source # | |
| ToJSON CommandId Source # | |
Defined in CDP.Internal.Utils | |
| FromJSON CommandId Source # | |
type CommandResponseBuffer = Map CommandId (MVar (Either ProtocolError Value)) Source #
data Subscriptions Source #
Constructors
| Subscriptions | |
Constructors
| Handle | |
Fields
| |
Constructors
| Config | |
Fields
| |
class FromJSON a => Event a where Source #
Instances
class (ToJSON cmd, FromJSON (CommandResponse cmd)) => Command cmd where Source #
Minimal complete definition
Associated Types
type CommandResponse cmd :: * Source #
Methods
commandName :: Proxy cmd -> String Source #
fromJSON :: Proxy cmd -> Value -> Result (CommandResponse cmd) Source #
Instances
data ProtocolError Source #
Constructors
| 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 Methods (==) :: ProtocolError -> ProtocolError -> Bool # (/=) :: ProtocolError -> ProtocolError -> Bool # | |
| Show ProtocolError Source # | |
Defined in CDP.Internal.Utils Methods showsPrec :: Int -> ProtocolError -> ShowS # show :: ProtocolError -> String # showList :: [ProtocolError] -> ShowS # | |
| FromJSON ProtocolError Source # | |
Defined in CDP.Internal.Utils Methods parseJSON :: Value -> Parser ProtocolError # parseJSONList :: Value -> Parser [ProtocolError] # | |
| Exception ProtocolError Source # | |
Defined in CDP.Internal.Utils Methods toException :: ProtocolError -> SomeException # fromException :: SomeException -> Maybe ProtocolError # displayException :: ProtocolError -> String # | |
Constructors
| ERRNoResponse | |
| ERRParse String | |
| ERRProtocol ProtocolError |
Instances
| Eq Error Source # | |
| Show Error Source # | |
| Exception Error Source # | |
Defined in CDP.Internal.Utils Methods toException :: Error -> SomeException # fromException :: SomeException -> Maybe Error # displayException :: Error -> String # | |
uncapitalizeFirst :: String -> String Source #