Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

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

    protolude Protolude.Monad

    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.

  2. forceTag :: DeriveType -> Bool

    safecopy Data.SafeCopy.Internal

    No documentation available.

  3. formatRealFloatAltB :: RealFloat a => FPFormat -> Maybe Int -> Bool -> a -> Builder

    text-show TextShow.Data.Floating

    Converts a RealFloat value to a Builder, specifying if a decimal point should always be shown. Since: 2

  4. formatRealFloatB :: RealFloat a => FPFormat -> Maybe Int -> a -> Builder

    text-show TextShow.Data.Floating

    Like formatRealFloatAltB, except that the decimal is only shown for arguments whose absolute value is between 0.1 and 9,999,999. Since: 2

  5. foreignToTH :: DForeign -> Foreign

    th-desugar Language.Haskell.TH.Desugar.Sweeten

    No documentation available.

  6. forward :: (HasCallStack, WebDriver wd) => wd ()

    webdriver Test.WebDriver.Commands

    Navigate forward in the browser history.

  7. formatHtfStack :: HtfStack -> String

    HTF Test.Framework.TestInterface

    Formats a stack trace.

  8. forcep :: Posn -> Int

    HaXml Text.XML.HaXml.Posn

    Just used to strictify the internal values of a position, to avoid space leaks.

  9. forceEither :: Show e => Either e a -> a

    MissingH Data.Either.Utils

    Pulls a Right value out of an Either value. If the Either value is Left, raises an exception with "error".

  10. forceEitherMsg :: Show e => String -> Either e a -> a

    MissingH Data.Either.Utils

    Like forceEither, but can raise a specific message with the error.

Page 64 of many | Previous | Next