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.
-
classy-prelude-conduit ClassyPrelude.Conduit Bracket a conduit computation between allocation and release of a resource. Two guarantees are given about resource finalization:
- It will be prompt. The finalization will be run as early as possible.
- It is exception safe. Due to usage of resourcet, the finalization will be run in the event of any exceptions.
bracketInputEcho :: IO a -> IO aecho 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)
bracketInputEcho :: IO a -> IO aecho 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)
brackets :: Parser a -> Parser agraphql Language.GraphQL.AST.Lexer Parser for an expression between "[" and "]".
brackets :: ParserV v a -> ParserV v aliquid-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)
-
liquid-fixpoint Text.PrettyPrint.HughesPJ.Compat No documentation available.
brackets :: IsLine doc => doc -> docliquidhaskell-boot Liquid.GHC.API No documentation available.
bracketOnError :: MonadPeelIO m => m a -> (a -> m b) -> (a -> m c) -> m cmonad-peel Control.Exception.Peel Generalized version of bracketOnError.
bracket_ :: MonadPeelIO m => m a -> m b -> m c -> m cmonad-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.
-
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