Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.CLI.Parser
Synopsis
- readerFromAttoParser :: Parser a -> ReadM a
- readFractionAsRational :: ReadM Rational
- readKeyOutputFormat :: ReadM KeyOutputFormat
- readIdOutputFormat :: ReadM IdOutputFormat
- readRational :: ReadM Rational
- readRationalUnitInterval :: ReadM Rational
- readStringOfMaxLength :: Int -> ReadM String
- readURIOfMaxLength :: Int -> ReadM Text
- commandWithMetavar :: String -> ParserInfo a -> Mod CommandFields a
- eDNSName :: String -> Either String ByteString
- stringToAnchorScheme :: SupportedSchemes -> String -> Either String AnchorScheme
Documentation
readerFromAttoParser :: Parser a -> ReadM a Source #
readFractionAsRational :: ReadM Rational Source #
readKeyOutputFormat :: ReadM KeyOutputFormat Source #
readIdOutputFormat :: ReadM IdOutputFormat Source #
readRational :: ReadM Rational Source #
readRationalUnitInterval :: ReadM Rational Source #
readStringOfMaxLength :: Int -> ReadM String Source #
readURIOfMaxLength :: Int -> ReadM Text Source #
commandWithMetavar :: String -> ParserInfo a -> Mod CommandFields a Source #
stringToAnchorScheme :: SupportedSchemes -> String -> Either String AnchorScheme Source #
Converts a string to an AnchorScheme
if it is a valid scheme and is in the
SupportedScheme
list, otherwise it returns Left
.