Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- commonSocketPath :: Parser FilePath
- commonDbPath :: Parser FilePath
- commonDbPathAndTableName :: Parser DbPathAndTableName
- parseDbPathAndTableName :: String -> Either String DbPathAndTableName
- commonNodeConfig :: Parser FilePath
- commonUntilSlot :: Parser SlotNo
- commonMaybeUntilSlot :: Parser (Maybe SlotNo)
- commonMaybeChainPointStart :: Parser (Maybe ChainPoint)
- commonPipelineSize :: Parser Word32
- commonNetworkId :: Parser NetworkId
- commonSecurityParam :: Parser SecurityParam
- commonSecurityParamEither :: Parser (Either NetworkId NodeConfig)
- commonNodeFolder :: Mod ArgumentFields NodeConfig
- commonNodeConnection :: Parser (NodeInfo (Either NetworkId NodeConfig))
- commonNodeConnectionAndConfig :: Parser (NodeInfo NodeConfig)
- commonInterval :: Parser Interval
- commonIntervalInfo :: Parser (Interval, Maybe DbPathAndTableName)
- commonHeaderDb :: Parser (Maybe DbPathAndTableName)
- commonLogging :: Parser Bool
- commonProfilingConfig :: Parser (Maybe ProfilingConfig)
- commonBatchSize :: Parser BatchSize
- commonLocalChainsyncConfig :: Parser LocalChainsyncConfig_
- mkCommonLocalChainsyncConfig :: Parser (NodeInfo a) -> Parser (LocalChainsyncConfig a)
- commonAddress :: Parser (Address ShelleyAddr)
- commonUtxoState :: Parser FilePath
- stateFilePrefix :: FilePath -> Parser FilePath
- commonLogSeverity :: Parser Severity
- commonMaybeAssetId :: Parser (Maybe (PolicyId, Maybe AssetName))
- commonRunHttpApi :: Parser (Maybe Int)
- commonCheckpointInterval :: Parser CheckpointInterval
- commonIgnoreMissingUtxos :: Parser Bool
- parseNominalDiffTime :: String -> Either String NominalDiffTime
- parseFrom :: String -> Either String (Bool, Either SlotNo ChainPoint)
- parseSlotNoOrChainPoint :: String -> Either String (Either SlotNo ChainPoint)
- commonConcurrencyPrimitive :: Parser ConcurrencyPrimitive
- some_ :: Parser a -> Parser (NonEmpty a)
- 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
- boundedEnum :: forall a. (Bounded a, Enum a, Show a) => String -> (String -> Either String a, String)
Options
commonSocketPath :: Parser FilePath #
commonDbPath :: Parser FilePath #
commonDbPathAndTableName :: Parser DbPathAndTableName #
commonNodeConfig :: Parser FilePath #
commonUntilSlot :: Parser SlotNo #
commonMaybeUntilSlot :: Parser (Maybe SlotNo) #
commonMaybeChainPointStart :: Parser (Maybe ChainPoint) #
commonPipelineSize :: Parser Word32 #
commonNetworkId :: Parser NetworkId #
commonSecurityParam :: Parser SecurityParam #
commonSecurityParamEither :: Parser (Either NetworkId NodeConfig) #
commonNodeFolder :: Mod ArgumentFields NodeConfig #
commonNodeConnection :: Parser (NodeInfo (Either NetworkId NodeConfig)) #
commonNodeConnectionAndConfig :: Parser (NodeInfo NodeConfig) #
commonInterval :: Parser Interval #
commonIntervalInfo :: Parser (Interval, Maybe DbPathAndTableName) #
commonHeaderDb :: Parser (Maybe DbPathAndTableName) #
commonLogging :: Parser Bool #
commonProfilingConfig :: Parser (Maybe ProfilingConfig) #
commonBatchSize :: Parser BatchSize #
commonLocalChainsyncConfig :: Parser LocalChainsyncConfig_ #
mkCommonLocalChainsyncConfig :: Parser (NodeInfo a) -> Parser (LocalChainsyncConfig a) #
commonAddress :: Parser (Address ShelleyAddr) #
commonUtxoState :: Parser FilePath #
stateFilePrefix :: FilePath -> Parser FilePath #
commonLogSeverity :: Parser Severity #
commonMaybeAssetId :: Parser (Maybe (PolicyId, Maybe AssetName)) #
commonRunHttpApi :: Parser (Maybe Int) #
commonCheckpointInterval :: Parser CheckpointInterval #
commonIgnoreMissingUtxos :: Parser Bool #
String parsers
NominalDiffTime
parseNominalDiffTime :: String -> Either String NominalDiffTime #
Interval
Block channel
commonConcurrencyPrimitive :: Parser ConcurrencyPrimitive #
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.
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