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. forkL :: (HasTrie (Basis a), HasBasis c, HasBasis d) => (a :-* c) -> (a :-* d) -> a :-* (c, d)

    vector-space Data.LinearMap

    No documentation available.

  2. forConnection :: T -> Data -> T

    alsa-seq Sound.ALSA.Sequencer.Event

    No documentation available.

  3. forSourcePort :: T -> Data -> T

    alsa-seq Sound.ALSA.Sequencer.Event

    No documentation available.

  4. forM :: (Traversable t, Monad m) => t a -> (a -> m b) -> m (t b)

    basic-prelude BasicPrelude

    forM is mapM with its arguments flipped. For a version that ignores the results see forM_.

  5. forM_ :: (Foldable t, Monad m) => t a -> (a -> m b) -> m ()

    basic-prelude BasicPrelude

    forM_ is mapM_ with its arguments flipped. For a version that doesn't ignore the results see forM. forM_ is just like for_, but specialised to monadic actions.

  6. for_ :: (Foldable t, Applicative f) => t a -> (a -> f b) -> f ()

    basic-prelude BasicPrelude

    for_ is traverse_ with its arguments flipped. For a version that doesn't ignore the results see for. This is forM_ generalised to Applicative actions. for_ is just like forM_, but generalised to Applicative actions.

    Examples

    Basic usage:
    >>> for_ [1..4] print
    1
    2
    3
    4
    

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

    basic-prelude BasicPrelude

    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.

  8. forceAttrMap :: Attr -> AttrMap

    brick Brick.AttrMap

    Create an attribute map in which all lookups map to the same attribute. This is functionally equivalent to attrMap attr [].

  9. forceAttrMapAllowStyle :: Attr -> AttrMap -> AttrMap

    brick Brick.AttrMap

    Create an attribute map in which all lookups map to the same attribute. This is functionally equivalent to attrMap attr [].

  10. formAttr :: AttrName

    brick Brick.Forms

    The namespace for the other form attributes.

Page 69 of many | Previous | Next