Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data APIServerLog
- = APIServerStarted { }
- | NewAPIConnection
- | APIOutputSent {
- sentOutput :: Value
- | APIInputReceived {
- receivedInput :: Value
- | APIInvalidInput {
- reason :: String
- inputReceived :: Text
- | APIConnectionError { }
- | APIHTTPRequestReceived { }
- newtype PathInfo = PathInfo ByteString
- newtype Method = Method ByteString
Documentation
data APIServerLog Source #
Instances
New type wrapper to define JSON instances.
Instances
Arbitrary PathInfo Source # | |
FromJSON PathInfo Source # | |
Defined in Hydra.API.APIServerLog parseJSON :: Value -> Parser PathInfo parseJSONList :: Value -> Parser [PathInfo] | |
ToJSON PathInfo Source # | |
Defined in Hydra.API.APIServerLog toEncoding :: PathInfo -> Encoding toJSONList :: [PathInfo] -> Value toEncodingList :: [PathInfo] -> Encoding | |
Show PathInfo Source # | |
Eq PathInfo Source # | |
New type wrapper to define JSON instances.
NOTE: We are not using http-types StdMethod
as we do not want to be
constrained in terms of logging and accept any method in a Request
.
Instances
Arbitrary Method Source # | |
FromJSON Method Source # | |
Defined in Hydra.API.APIServerLog parseJSON :: Value -> Parser Method parseJSONList :: Value -> Parser [Method] | |
ToJSON Method Source # | |
Defined in Hydra.API.APIServerLog toEncoding :: Method -> Encoding toJSONList :: [Method] -> Value toEncodingList :: [Method] -> Encoding | |
Show Method Source # | |
Eq Method Source # | |