Hoogle Search

Within LTS Haskell 24.36 (ghc-9.10.3)

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

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

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  2. foreignNullable :: ForeignDef -> Bool

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  3. foreignRefTableDBName :: ForeignDef -> !EntityNameDB

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  4. foreignRefTableHaskell :: ForeignDef -> !EntityNameHS

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  5. foreignToPrimary :: ForeignDef -> Bool

    classy-prelude-yesod ClassyPrelude.Yesod

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

  6. 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.

  7. 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

  8. formToAForm :: forall (m :: Type -> Type) site a . (HandlerSite m ~ site, Monad m) => MForm m (FormResult a, [FieldView site]) -> AForm m a

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  9. formatLogMessage :: IO ZonedDate -> Loc -> LogSource -> LogLevel -> LogStr -> IO LogStr

    classy-prelude-yesod ClassyPrelude.Yesod

    Default formatting for log messages. When you use the template haskell logging functions for to log with information about the source location, that information will be appended to the end of the log. When you use the non-TH logging functions, like logDebugN, this function does not include source information. This currently works by checking to see if the package name is the string "<unknown>". This is a hack, but it removes some of the visual clutter from non-TH logs. Since 1.4.10

  10. formatRFC1123 :: UTCTime -> Text

    classy-prelude-yesod ClassyPrelude.Yesod

    Format as per RFC 1123.

Page 202 of many | Previous | Next