Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Combinators for optparse-applicative
.
Synopsis
- somePath :: Path Abs Dir -> SomeBase t -> Path Abs t
- severityOption :: ReadM Severity
- readPath :: String -> (String -> Either e (SomeBase t)) -> Path Abs Dir -> String -> ReadM (Path Abs t)
- pathOption :: String -> (String -> Either e (SomeBase t)) -> Path Abs Dir -> ReadM (Path Abs t)
- dirPathOption :: Path Abs Dir -> ReadM (Path Abs Dir)
- filePathOption :: Path Abs Dir -> ReadM (Path Abs File)
Documentation
somePath :: Path Abs Dir -> SomeBase t -> Path Abs t Source #
Convert a path to absolute, using the first argument as base dir for relative paths.
severityOption :: ReadM Severity Source #
A logging severity option for optparse-applicative
.
readPath :: String -> (String -> Either e (SomeBase t)) -> Path Abs Dir -> String -> ReadM (Path Abs t) Source #
Parse a path from a string in ReadM
.
pathOption :: String -> (String -> Either e (SomeBase t)) -> Path Abs Dir -> ReadM (Path Abs t) Source #
A path option for optparse-applicative
.