Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
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
hoistCoyoneda :: (forall a . () => f a -> g a) -> Coyoneda f b -> Coyoneda g bkan-extensions Data.Functor.Contravariant.Coyoneda Lift a natural transformation from f to g to a natural transformation from Coyoneda f to Coyoneda g.
hoistCoyoneda :: (forall a . () => f a -> g a) -> Coyoneda f b -> Coyoneda g bkan-extensions Data.Functor.Coyoneda Lift a natural transformation from f to g to a natural transformation from Coyoneda f to Coyoneda g.