Hoogle Search
Within LTS Haskell 22.21 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type
HandlerT site (m :: Type -> Type) = HandlerFor siteyesod-core Yesod.Core.Handler Deprecated: Use HandlerFor directly
type
HandlerT = Socket -> SockAddr -> SockAddr -> IO ()MissingH Network.SocketServer The main handler type. The first parameter is the socket itself. The second is the address of the remote endpoint. The third is the address of the local endpoint.
type
HandlerT site (m :: Type -> Type) = HandlerFor siteclassy-prelude-yesod ClassyPrelude.Yesod No documentation available.
type
HandlerT site (m :: Type -> Type) = HandlerFor sitehledger-web Hledger.Web.Import No documentation available.
handlerToIO :: MonadIO m => HandlerFor site (HandlerFor site a -> m a)yesod-core Yesod.Core.Handler Returns a function that runs HandlerFor actions inside IO. Sometimes you want to run an inner HandlerFor action outside the control flow of an HTTP request (on the outer HandlerFor action). For example, you may want to spawn a new thread:
getFooR :: Handler RepHtml getFooR = do runInnerHandler <- handlerToIO liftIO $ forkIO $ runInnerHandler $ do Code here runs inside HandlerFor but on a new thread. This is the inner HandlerFor. ... Code here runs inside the request's control flow. This is the outer HandlerFor. ...
Another use case for this function is creating a stream of server-sent events using HandlerFor actions (see yesod-eventsource). Most of the environment from the outer HandlerFor is preserved on the inner HandlerFor, however:- The request body is cleared (otherwise it would be very difficult to prevent huge memory leaks).
- The cache is cleared (see cached).
handlerToWidget :: HandlerFor site a -> WidgetFor site ayesod-core Yesod.Core.Widget No documentation available.
handlerToIO :: MonadIO m => HandlerFor site (HandlerFor site a -> m a)classy-prelude-yesod ClassyPrelude.Yesod Returns a function that runs HandlerFor actions inside IO. Sometimes you want to run an inner HandlerFor action outside the control flow of an HTTP request (on the outer HandlerFor action). For example, you may want to spawn a new thread:
getFooR :: Handler RepHtml getFooR = do runInnerHandler <- handlerToIO liftIO $ forkIO $ runInnerHandler $ do Code here runs inside HandlerFor but on a new thread. This is the inner HandlerFor. ... Code here runs inside the request's control flow. This is the outer HandlerFor. ...
Another use case for this function is creating a stream of server-sent events using HandlerFor actions (see yesod-eventsource). Most of the environment from the outer HandlerFor is preserved on the inner HandlerFor, however:- The request body is cleared (otherwise it would be very difficult to prevent huge memory leaks).
- The cache is cleared (see cached).
handlerToWidget :: HandlerFor site a -> WidgetFor site aclassy-prelude-yesod ClassyPrelude.Yesod No documentation available.
handlerToIO :: MonadIO m => HandlerFor site (HandlerFor site a -> m a)hledger-web Hledger.Web.Import Returns a function that runs HandlerFor actions inside IO. Sometimes you want to run an inner HandlerFor action outside the control flow of an HTTP request (on the outer HandlerFor action). For example, you may want to spawn a new thread:
getFooR :: Handler RepHtml getFooR = do runInnerHandler <- handlerToIO liftIO $ forkIO $ runInnerHandler $ do Code here runs inside HandlerFor but on a new thread. This is the inner HandlerFor. ... Code here runs inside the request's control flow. This is the outer HandlerFor. ...
Another use case for this function is creating a stream of server-sent events using HandlerFor actions (see yesod-eventsource). Most of the environment from the outer HandlerFor is preserved on the inner HandlerFor, however:- The request body is cleared (otherwise it would be very difficult to prevent huge memory leaks).
- The cache is cleared (see cached).
handlerToWidget :: HandlerFor site a -> WidgetFor site ahledger-web Hledger.Web.Import No documentation available.
Page 1 of 2 | Next