Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
servant-server Servant.Server No documentation available.
-
servant-server Servant.Server.Internal No documentation available.
hoists :: (forall x . () => m x -> n x) -> FoldM m a b -> FoldM n a bfoldl Control.Foldl Shift a FoldM from one monad to another with a morphism such as lift or liftIO; the effect is the same as hoist.
hoists :: (forall x . () => m x -> n x) -> ScanM m a b -> ScanM n a bfoldl Control.Scanl Shift a ScanM from one monad to another with a morphism such as lift or liftIO; the effect is the same as hoist.
-
servant-client Servant.Client Change the monad the client functions live in, by supplying a conversion function (a natural transformation to be precise). For example, assuming you have some manager :: Manager and baseurl :: BaseUrl around:
type API = Get '[JSON] Int :<|> Capture "n" Int :> Post '[JSON] Int api :: Proxy API api = Proxy getInt :: IO Int postInt :: Int -> IO Int getInt :<|> postInt = hoistClient api (flip runClientM cenv) (client api) where cenv = mkClientEnv manager baseurl
-
servant-client Servant.Client.Internal.HttpClient Change the monad the client functions live in, by supplying a conversion function (a natural transformation to be precise). For example, assuming you have some manager :: Manager and baseurl :: BaseUrl around:
type API = Get '[JSON] Int :<|> Capture "n" Int :> Post '[JSON] Int api :: Proxy API api = Proxy getInt :: IO Int postInt :: Int -> IO Int getInt :<|> postInt = hoistClient api (flip runClientM cenv) (client api) where cenv = mkClientEnv manager baseurl
-
servant-client Servant.Client.Internal.HttpClient.Streaming Change the monad the client functions live in, by supplying a conversion function (a natural transformation to be precise). For example, assuming you have some manager :: Manager and baseurl :: BaseUrl around:
type API = Get '[JSON] Int :<|> Capture "n" Int :> Post '[JSON] Int api :: Proxy API api = Proxy getInt :: IO Int postInt :: Int -> IO Int getInt :<|> postInt = hoistClient api (flip runClientM cenv) (client api) where cenv = mkClientEnv manager baseurl
-
servant-client Servant.Client.Streaming Change the monad the client functions live in, by supplying a conversion function (a natural transformation to be precise). For example, assuming you have some manager :: Manager and baseurl :: BaseUrl around:
type API = Get '[JSON] Int :<|> Capture "n" Int :> Post '[JSON] Int api :: Proxy API api = Proxy getInt :: IO Int postInt :: Int -> IO Int getInt :<|> postInt = hoistClient api (flip runClientM cenv) (client api) where cenv = mkClientEnv manager baseurl
hoistEither :: forall (m :: Type -> Type) e a . Monad m => Either e a -> ExceptT e m aerrors Control.Error.Util hoistMaybe :: forall (m :: Type -> Type) b . Monad m => Maybe b -> MaybeT m berrors Control.Error.Util