Hoogle Search

Within LTS Haskell 24.46 (ghc-9.10.3)

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

  1. bracketP :: forall (m :: Type -> Type) a i o r . MonadResource m => IO a -> (a -> IO ()) -> (a -> ConduitT i o m r) -> ConduitT i o m r

    classy-prelude-conduit ClassyPrelude.Conduit

    Bracket a conduit computation between allocation and release of a resource. Two guarantees are given about resource finalization:

    1. It will be prompt. The finalization will be run as early as possible.
    2. It is exception safe. Due to usage of resourcet, the finalization will be run in the event of any exceptions.
    Since 0.5.0

  2. bracketInputEcho :: IO a -> IO a

    echo System.IO.Echo

    Save the terminal's current input EchoState, perform a computation, restore the saved EchoState, and then return the result of the computation.

    bracketInputEcho action = bracket getInputEchoState setInputEchoState (const action)
    

  3. bracketInputEcho :: IO a -> IO a

    echo System.IO.Echo.Internal

    Save the terminal's current input EchoState, perform a computation, restore the saved EchoState, and then return the result of the computation.

    bracketInputEcho action = bracket getInputEchoState setInputEchoState (const action)
    

  4. brackets :: Parser a -> Parser a

    graphql Language.GraphQL.AST.Lexer

    Parser for an expression between "[" and "]".

  5. brackets :: ParserV v a -> ParserV v a

    liquid-fixpoint Language.Fixpoint.Parse

    Parser that consumes the given symbol. The difference with reservedOp is that the given symbol is seen as a token of its own, so the next character that follows does not matter. symbol :: String -> Parser String symbol x = L.symbol spaces (string x)

  6. brackets :: Doc -> Doc

    liquid-fixpoint Text.PrettyPrint.HughesPJ.Compat

    No documentation available.

  7. brackets :: IsLine doc => doc -> doc

    liquidhaskell-boot Liquid.GHC.API

    No documentation available.

  8. bracketOnError :: MonadPeelIO m => m a -> (a -> m b) -> (a -> m c) -> m c

    monad-peel Control.Exception.Peel

    Generalized version of bracketOnError.

  9. bracket_ :: MonadPeelIO m => m a -> m b -> m c -> m c

    monad-peel Control.Exception.Peel

    Generalized version of bracket_. Note, any monadic side effects in m of both the "acquire" and "release" computations will be discarded. To keep the monadic side effects of the "acquire" computation, use bracket with constant functions instead.

  10. bracketIO :: forall (m :: Type -> Type) b c a . (MonadIO m, MonadCatch m) => IO b -> (b -> IO c) -> (b -> Stream m a) -> Stream m a

    streamly-core Streamly.Data.Stream

    Run the alloc action IO b with async exceptions disabled but keeping blocking operations interruptible (see mask). Use the output b of the IO action as input to the function b -> Stream m a to generate an output stream. b is usually a resource under the IO monad, e.g. a file handle, that requires a cleanup after use. The cleanup action b -> IO c, runs whenever (1) the stream ends normally, (2) due to a sync or async exception or, (3) if it gets garbage collected after a partial lazy evaluation. The exception is not caught, it is rethrown. bracketIO only guarantees that the cleanup action runs, and it runs with async exceptions enabled. The action must ensure that it can successfully cleanup the resource in the face of sync or async exceptions. When the stream ends normally or on a sync exception, cleanup action runs immediately in the current thread context, whereas in other cases it runs in the GC context, therefore, cleanup may be delayed until the GC gets to run. An example where GC based cleanup happens is when a stream is being folded but the fold terminates without draining the entire stream or if the consumer of the stream encounters an exception. Observes exceptions only in the stream generation, and not in stream consumers. See also: bracketUnsafe Inhibits stream fusion

Page 15 of many | Previous | Next