| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Okapi.Mode.Client
Documentation
data ClientError Source #
Constructors
| ClientError |
Instances
| Show ClientError Source # | |
Defined in Okapi.Mode.Client Methods showsPrec :: Int -> ClientError -> ShowS # show :: ClientError -> String # showList :: [ClientError] -> ShowS # | |
| Eq ClientError Source # | |
Defined in Okapi.Mode.Client | |
data ClientSettings Source #
Constructors
| ClientSettings | |
data Client shape where Source #
Constructors
| Cb :: forall method path query headers body result. (Request method path query headers body -> IO (Either ClientError result)) -> Client (Shape method path query headers body result) |
fetch :: Manager -> String -> Forest (Shape method path query headers body result) -> Request method path query headers body -> IO (Either ClientError result) Source #
class GClient (epF :: Type -> Type) (clF :: Type -> Type) Source #
Minimal complete definition
gClient
Instances
| (GClient epL clL, GClient epR clR) => GClient (epL :*: epR) (clL :*: clR) Source # | |
Defined in Okapi.Mode.Client Methods gClient :: ClientSettings -> (epL :*: epR) () -> (clL :*: clR) () | |
| GClient epF clF => GClient (C1 cm epF) (C1 cm' clF) Source # | |
Defined in Okapi.Mode.Client Methods gClient :: ClientSettings -> C1 cm epF () -> C1 cm' clF () | |
| GClient epF clF => GClient (D1 dm epF) (D1 dm' clF) Source # | |
Defined in Okapi.Mode.Client Methods gClient :: ClientSettings -> D1 dm epF () -> D1 dm' clF () | |
| GClient (S1 sm (Rec0 (Forest (Shape method path query headers body result)))) (S1 sm' (Rec0 (Client (Shape method path query headers body result)))) Source # | |