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.
-
burrito Burrito.Internal.Type.Operator No documentation available.
-
butcher UI.Butcher.Monadic Information about an error that occured when trying to parse some Input using some CmdParser.
ParsingError :: [String] -> Input -> ParsingErrorbutcher UI.Butcher.Monadic No documentation available.
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.
-
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.
Param :: Maybe p -> Maybe Doc -> Maybe [CompletionItem] -> Param pbutcher UI.Butcher.Monadic.Param No documentation available.
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!"
-
butcher UI.Butcher.Monadic.Types Information about an error that occured when trying to parse some Input using some CmdParser.
ParsingError :: [String] -> Input -> ParsingErrorbutcher UI.Butcher.Monadic.Types No documentation available.
PartAlts :: [PartDesc] -> PartDescbutcher UI.Butcher.Monadic.Types No documentation available.