Safe Haskell | None |
---|---|
Language | GHC2021 |
Hix.Optparse
Description
Combinators for optparse-applicative
.
Synopsis
- pathOption :: String -> (String -> Either e a) -> ReadM a
- absPathOrCwdOption :: String -> (String -> Either e (SomeBase t)) -> Path Abs Dir -> ReadM (Path Abs t)
- absFileOption :: ReadM (Path Abs File)
- absFileOrCwdOption :: Path Abs Dir -> ReadM (Path Abs File)
- relFileOption :: ReadM (Path Rel File)
- someFileOption :: ReadM (SomeBase File)
- absDirOption :: ReadM (Path Abs Dir)
- relDirOption :: ReadM (Path Rel Dir)
- newtype JsonConfig = JsonConfig {
- unJsonConfig :: IO (Either String Value)
- jsonOption :: ReadM JsonConfig
- buildHandlersOption :: ReadM SpecialBuildHandlers
- outputFormatOption :: ReadM OutputFormat
- outputTargetOption :: ReadM OutputTarget
- indexStateOption :: ReadM HackageIndexState
Documentation
absPathOrCwdOption :: String -> (String -> Either e (SomeBase t)) -> Path Abs Dir -> ReadM (Path Abs t) Source #
absFileOption :: ReadM (Path Abs File) Source #
An absolute file path option for optparse-applicative
.
absFileOrCwdOption :: Path Abs Dir -> ReadM (Path Abs File) Source #
An absolute file path option for optparse-applicative
.
relFileOption :: ReadM (Path Rel File) Source #
A relative file path option for optparse-applicative
.
newtype JsonConfig Source #
Constructors
JsonConfig | |
Fields
|
Instances
Generic JsonConfig Source # | |||||
Defined in Hix.Optparse Associated Types
| |||||
Show JsonConfig Source # | |||||
Defined in Hix.Optparse Methods showsPrec :: Int -> JsonConfig -> ShowS # show :: JsonConfig -> String # showList :: [JsonConfig] -> ShowS # | |||||
type Rep JsonConfig Source # | |||||
Defined in Hix.Optparse type Rep JsonConfig = D1 ('MetaData "JsonConfig" "Hix.Optparse" "hix-0.8.0-HgAAo9T3AqQBueO4fzYR2Q" 'True) (C1 ('MetaCons "JsonConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "unJsonConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (IO (Either String Value))))) |