Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
bracket_ :: IO a -> IO b -> IO c -> IO cghc-internal GHC.Internal.Control.Exception.Base A variant of bracket where the return value from the first computation is not required.
bracketSep :: PolyParse p => p bra -> p sep -> p ket -> p a -> p [a]graphviz Data.GraphViz.Parsing Parse a list of items, discarding the start, end, and separator items.
brackets :: Functor m => m Doc -> m Docgraphviz Data.GraphViz.Printing Document (brackets x) encloses document x in square brackets, "[" and "]".
bracketeddatetagsp :: forall (m :: Type -> Type) . Maybe Year -> TextParser m [(TagName, Day)]hledger-lib Hledger.Read.Common Parse Ledger-style bracketed posting dates ([DATE=DATE2]), as "date" and/or "date2" tags. Anything that looks like an attempt at this (a square-bracketed sequence of 0123456789/-.= containing at least one digit and one date separator) is also parsed, and will throw an appropriate error. The dates are parsed in full here so that errors are reported in the right position. A missing year in DATE can be inferred if a default date is provided. A missing year in DATE2 will be inferred from DATE.
>>> either (Left . customErrorBundlePretty) Right $ rtp (bracketeddatetagsp Nothing) "[2016/1/2=3/4]" Right [("date",2016-01-02),("date2",2016-03-04)]
>>> either (Left . customErrorBundlePretty) Right $ rtp (bracketeddatetagsp Nothing) "[1]" Left ...not a bracketed date...
>>> either (Left . customErrorBundlePretty) Right $ rtp (bracketeddatetagsp Nothing) "[2016/1/32]" Left ...1:2:...This is not a valid date...
>>> either (Left . customErrorBundlePretty) Right $ rtp (bracketeddatetagsp Nothing) "[1/31]" Left ...1:2:...This partial date can not be parsed because the current year is unknown...
>>> either (Left . customErrorBundlePretty) Right $ rtp (bracketeddatetagsp Nothing) "[0123456789/-.=/-.=]" Left ...1:13:...expecting month or day...
bracket_ :: MonadAsyncException m => m a -> m b -> m c -> m cexception-transformers Control.Monad.Exception A variant of bracket where the return value from the first computation is not required.
-
ghc-lib-parser GHC.Internal.TH.PprLib No documentation available.
bracketOnError :: IO a -> (a -> IO b) -> (a -> IO c) -> IO cghc-lib-parser GHC.Utils.Exception Like bracket, but only performs the final action if there was an exception raised by the in-between computation.
bracket_ :: IO a -> IO b -> IO c -> IO cghc-lib-parser GHC.Utils.Exception A variant of bracket where the return value from the first computation is not required.
brackets :: IsLine doc => doc -> docghc-lib-parser GHC.Utils.Outputable No documentation available.
-
ghc-lib-parser GHC.Utils.Ppr No documentation available.