Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
monadology Control.Monad.Ology.General.Trans.Tunnel No documentation available.
hoistMaybe :: forall (m :: Type -> Type) b . Applicative m => Maybe b -> MaybeT m bmonadology Control.Monad.Ology.Specific.MaybeT -
oops Control.Monad.Oops When the expression of type 'Either x a' evaluates to 'Left x', throw the x, otherwise return a.
-
oops Control.Monad.Oops When the expression of type 'Maybe a' evaluates to Nothing, throw the specified value, otherwise return a.
-
servant-http-streams Servant.HttpStreams 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-http-streams Servant.HttpStreams.Internal 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 :: Either Response a -> Controller s asimple Web.Simple.Controller No documentation available.
hoistEither :: forall (m :: Type -> Type) a s . Monad m => Either Response a -> ControllerT s m asimple Web.Simple.Controller.Trans No documentation available.
-
wai-transformers Network.Wai.Trans No documentation available.
-
wai-transformers Network.Wai.Trans No documentation available.