Hoogle Search

Within LTS Haskell 24.48 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. foreignConstraintNameDBName :: ForeignDef -> !ConstraintNameDB

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  2. foreignConstraintNameHaskell :: ForeignDef -> !ConstraintNameHS

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  3. foreignFieldCascade :: ForeignDef -> !FieldCascade

    classy-prelude-yesod ClassyPrelude.Yesod

    Determine how the field will cascade on updates and deletions.

  4. foreignFields :: ForeignDef -> ![(ForeignFieldDef, ForeignFieldDef)]

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  5. foreignNullable :: ForeignDef -> Bool

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  6. foreignRefTableDBName :: ForeignDef -> !EntityNameDB

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  7. foreignRefTableHaskell :: ForeignDef -> !EntityNameHS

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  8. foreignToPrimary :: ForeignDef -> Bool

    classy-prelude-yesod ClassyPrelude.Yesod

    Determines if the reference is towards a Primary Key or not.

  9. forever :: Applicative f => f a -> f b

    classy-prelude-yesod ClassyPrelude.Yesod

    Repeat an action indefinitely.

    Examples

    A common use of forever is to process input from network sockets, Handles, and channels (e.g. MVar and Chan). For example, here is how we might implement an echo server, using forever both to listen for client connections on a network socket and to echo client input on client connection handles:
    echoServer :: Socket -> IO ()
    echoServer socket = forever $ do
    client <- accept socket
    forkFinally (echo client) (\_ -> hClose client)
    where
    echo :: Handle -> IO ()
    echo client = forever $
    hGetLine client >>= hPutStrLn client
    
    Note that "forever" isn't necessarily non-terminating. If the action is in a MonadPlus and short-circuits after some number of iterations. then forever actually returns mzero, effectively short-circuiting its caller.

  10. forkHandler :: (SomeException -> HandlerFor site ()) -> HandlerFor site () -> HandlerFor site ()

    classy-prelude-yesod ClassyPrelude.Yesod

    forkIO for a Handler (run an action in the background) Uses handlerToIO, liftResourceT, and resourceForkIO for correctness and efficiency

Page 202 of many | Previous | Next