Hoogle Search

Within LTS Haskell 24.42 (ghc-9.10.3)

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

  1. PlusSign :: Operator

    burrito Burrito.Internal.Type.Operator

    No documentation available.

  2. data ParsingError

    butcher UI.Butcher.Monadic

    Information about an error that occured when trying to parse some Input using some CmdParser.

  3. ParsingError :: [String] -> Input -> ParsingError

    butcher UI.Butcher.Monadic

    No documentation available.

  4. module UI.Butcher.Monadic.Param

    Parameters are arguments of your current command that are not prefixed by some flag. Typical commandline interface is something like "PROGRAM [FLAGS] INPUT". Here, FLAGS are Flags in butcher, and INPUT is a Param, in this case a String representing a path, for example.

  5. data Param p

    butcher UI.Butcher.Monadic.Param

    param-description monoid. You probably won't need to use the constructor; mzero or any (<>) of param(Help|Default|Suggestion) works well.

  6. Param :: Maybe p -> Maybe Doc -> Maybe [CompletionItem] -> Param p

    butcher UI.Butcher.Monadic.Param

    No documentation available.

  7. module UI.Butcher.Monadic.Pretty

    Pretty-print of CommandDescs. To explain what the different functions do, we will use an example CmdParser. The CommandDesc derived from that CmdParser will serve as example input to the functions in this module.

    main = mainFromCmdParserWithHelpDesc $ \helpDesc -> do
    
    addCmdSynopsis "a simple butcher example program"
    addCmdHelpStr "a very long help document"
    
    addCmd "version" $ do
    porcelain <- addSimpleBoolFlag "" ["porcelain"]
    (flagHelpStr "print nothing but the numeric version")
    addCmdHelpStr "prints the version of this program"
    addCmdImpl $ putStrLn $ if porcelain
    then "0.0.0.999"
    else "example, version 0.0.0.999"
    
    addCmd "help" $ addCmdImpl $ print $ ppHelpShallow helpDesc
    
    short <- addSimpleBoolFlag "" ["short"] (flagHelpStr "make the greeting short")
    name <- addStringParam "NAME"
    (paramHelpStr "your name, so you can be greeted properly")
    
    addCmdImpl $ do
    if short
    then putStrLn $ "hi, " ++ name ++ "!"
    else putStrLn $ "hello, " ++ name ++ ", welcome from butcher!"
    

  8. data ParsingError

    butcher UI.Butcher.Monadic.Types

    Information about an error that occured when trying to parse some Input using some CmdParser.

  9. ParsingError :: [String] -> Input -> ParsingError

    butcher UI.Butcher.Monadic.Types

    No documentation available.

  10. PartAlts :: [PartDesc] -> PartDesc

    butcher UI.Butcher.Monadic.Types

    No documentation available.

Page 802 of many | Previous | Next