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.

  1. bracket_ :: IO a -> IO b -> IO c -> IO c

    ghc-internal GHC.Internal.Control.Exception.Base

    A variant of bracket where the return value from the first computation is not required.

  2. 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.

  3. brackets :: Functor m => m Doc -> m Doc

    graphviz Data.GraphViz.Printing

    Document (brackets x) encloses document x in square brackets, "[" and "]".

  4. 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...
    

  5. bracket_ :: MonadAsyncException m => m a -> m b -> m c -> m c

    exception-transformers Control.Monad.Exception

    A variant of bracket where the return value from the first computation is not required.

  6. brackets :: Doc -> Doc

    ghc-lib-parser GHC.Internal.TH.PprLib

    No documentation available.

  7. bracketOnError :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c

    ghc-lib-parser GHC.Utils.Exception

    Like bracket, but only performs the final action if there was an exception raised by the in-between computation.

  8. bracket_ :: IO a -> IO b -> IO c -> IO c

    ghc-lib-parser GHC.Utils.Exception

    A variant of bracket where the return value from the first computation is not required.

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

    ghc-lib-parser GHC.Utils.Outputable

    No documentation available.

  10. brackets :: Doc -> Doc

    ghc-lib-parser GHC.Utils.Ppr

    No documentation available.

Page 11 of many | Previous | Next