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. module Options.Applicative.Arrows

    This module contains an arrow interface for option parsers, which allows to define and combine parsers using the arrow notation and arrow combinators. The arrow syntax is particularly useful to create parsers of nested structures, or records where the order of fields is different from the order in which the parsers should be applied. For example, an arguments parser often needs to be applied last, and that makes it inconvenient to use it for a field which is not the last one in a record. Using the arrow syntax and the functions in this module, one can write, e.g.:

    data Options = Options
    { optArgs :: [String]
    , optVerbose :: Bool }
    
    opts :: Parser Options
    opts = runA $ proc () -> do
    verbose <- asA (switch (short 'v')) -< ()
    args <- asA (arguments str idm) -< ()
    returnA -< Options args verbose
    
    Parser arrows, created out of regular Parser values using the asA function, are arrows taking () as argument and returning the parsed value.

  2. module GHC.HsToCore.Arrows

    No documentation available.

  3. ArrowsBit :: ExtBits

    ghc GHC.Parser.Lexer

    No documentation available.

  4. data ArrowCtxt

    ghc GHC.Tc.Types

    No documentation available.

  5. ArrowCtxt :: LocalRdrEnv -> TcRef WantedConstraints -> ArrowCtxt

    ghc GHC.Tc.Types

    No documentation available.

  6. data ArrowCtxt

    ghc GHC.Tc.Types.LclEnv

    No documentation available.

  7. ArrowCtxt :: LocalRdrEnv -> TcRef WantedConstraints -> ArrowCtxt

    ghc GHC.Tc.Types.LclEnv

    No documentation available.

  8. ArrowCmdApp :: !HsCmd GhcRn -> !HsExpr GhcRn -> FRRArrowContext

    ghc GHC.Tc.Types.Origin

    The argument to an arrow in an arrow command application does not have a fixed runtime representation. Test cases: none.

  9. ArrowCmdArrApp :: !HsExpr GhcRn -> !HsExpr GhcRn -> HsArrAppType -> FRRArrowContext

    ghc GHC.Tc.Types.Origin

    A function in an arrow application does not have a fixed runtime representation. Test cases: none.

  10. ArrowCmdCase :: FRRArrowContext

    ghc GHC.Tc.Types.Origin

    The scrutinee type in an arrow command case statement does not have a fixed runtime representation. Test cases: none.

Page 7 of many | Previous | Next