Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class LivyRequest a where
- type family LivyResponse a :: *
- class ToPath a where
- toPath :: a -> ByteString
- class ToQuery a where
- toQueryString :: a -> Query
- data LivyError = LivyError {
- _leType :: !LivyErrorType
- _leMessage :: !ByteString
- _leResponseBody :: !(Maybe ByteString)
- _leCode :: !(Maybe LivyHTTPErrorCode)
- data LivyErrorType
- data LivyHTTPErrorCode
- leCode :: Lens' LivyError (Maybe LivyHTTPErrorCode)
- leMessage :: Lens' LivyError ByteString
- leResponseBody :: Lens' LivyError (Maybe ByteString)
- leType :: Lens' LivyError LivyErrorType
Request/response types
class LivyRequest a where Source #
Specify how a request is created.
Instances
type family LivyResponse a :: * Source #
The response type of a Livy request.
Instances
type LivyResponse RunStatementCompletion Source # | |
type LivyResponse RunStatement Source # | |
type LivyResponse KillSession Source # | |
type LivyResponse GetSessions Source # | |
type LivyResponse GetSessionStatements Source # | |
type LivyResponse GetSessionStatement Source # | |
type LivyResponse GetSessionState Source # | |
type LivyResponse GetSessionLogs Source # | |
type LivyResponse GetSession Source # | |
Defined in Network.Livy.Client.Interactive.GetSession | |
type LivyResponse CreateSession Source # | |
type LivyResponse CancelStatement Source # | |
type LivyResponse KillBatch Source # | |
Defined in Network.Livy.Client.Batch.KillBatch | |
type LivyResponse GetBatches Source # | |
Defined in Network.Livy.Client.Batch.GetBatches | |
type LivyResponse GetBatchState Source # | |
type LivyResponse GetBatchLogs Source # | |
Defined in Network.Livy.Client.Batch.GetBatchLogs | |
type LivyResponse GetBatch Source # | |
Defined in Network.Livy.Client.Batch.GetBatch | |
type LivyResponse CreateBatch Source # | |
Defined in Network.Livy.Client.Batch.CreateBatch |
Specify how a value is converted to a URL fragment.
toPath :: a -> ByteString Source #
Instances
class ToQuery a where Source #
Specify how a value is converted to a collection of query parameters.
toQueryString :: a -> Query Source #
Instances
ToQuery GetSessions Source # | |
Defined in Network.Livy.Client.Interactive.GetSessions toQueryString :: GetSessions -> Query Source # | |
ToQuery GetSessionLogs Source # | |
Defined in Network.Livy.Client.Interactive.GetSessionLogs toQueryString :: GetSessionLogs -> Query Source # | |
ToQuery GetBatches Source # | |
Defined in Network.Livy.Client.Batch.GetBatches toQueryString :: GetBatches -> Query Source # | |
ToQuery GetBatchLogs Source # | |
Defined in Network.Livy.Client.Batch.GetBatchLogs toQueryString :: GetBatchLogs -> Query Source # |
Exceptions
An error with Livy.
LivyError | |
|
Instances
Show LivyError Source # | |
Exception LivyError Source # | |
Defined in Network.Livy.Types toException :: LivyError -> SomeException # fromException :: SomeException -> Maybe LivyError # displayException :: LivyError -> String # |
data LivyErrorType Source #
Livy error types.
Instances
Show LivyErrorType Source # | |
Defined in Network.Livy.Types showsPrec :: Int -> LivyErrorType -> ShowS # show :: LivyErrorType -> String # showList :: [LivyErrorType] -> ShowS # |
data LivyHTTPErrorCode Source #
HTTP response error codes.
Instances
Show LivyHTTPErrorCode Source # | |
Defined in Network.Livy.Types showsPrec :: Int -> LivyHTTPErrorCode -> ShowS # show :: LivyHTTPErrorCode -> String # showList :: [LivyHTTPErrorCode] -> ShowS # |