mafoc-0.0.0.1
Safe HaskellSafe-Inferred
LanguageHaskell2010

Mafoc.CLI

Synopsis

Options

commonUntilSlot :: Parser SlotNo #

commonMaybeUntilSlot :: Parser (Maybe SlotNo) #

commonMaybeChainPointStart :: Parser (Maybe ChainPoint) #

commonNetworkId :: Parser NetworkId #

commonSecurityParam :: Parser SecurityParam #

commonNodeFolder :: Mod ArgumentFields NodeConfig #

commonLogging :: Parser Bool #

commonAddress :: Parser (Address ShelleyAddr) #

commonLogSeverity :: Parser Severity #

commonMaybeAssetId :: Parser (Maybe (PolicyId, Maybe AssetName)) #

String parsers

NominalDiffTime

parseNominalDiffTime :: String -> Either String NominalDiffTime #

Interval

parseFrom :: String -> Either String (Bool, Either SlotNo ChainPoint) #

Block channel

Helpers

some_ :: Parser a -> Parser (NonEmpty a) #

The "real" some.

optparse-applicative's some returns a list, which doesn't reflect on the type level that it must have at least one member.

simpleCmd :: String -> a -> Mod CommandFields a #

opt :: Char -> String -> String -> Mod OptionFields a #

longOpt :: HasName f => String -> String -> Mod f a #

parseSlotNo :: Char -> String -> String -> Parser SlotNo #

parserToParserInfo :: String -> String -> Parser a -> ParserInfo a #

Take program description, header and CLI parser, and turn it into a ParserInfo

boundedEnum :: forall a. (Bounded a, Enum a, Show a) => String -> (String -> Either String a, String) #