Safe Haskell | None |
---|---|
Language | Haskell2010 |
Names for flags.
- data FlagName
- newtype FlagNameParseFail = FlagNameParseFail Text
- flagNameParser :: Parser FlagName
- parseFlagName :: MonadThrow m => Text -> m FlagName
- parseFlagNameFromString :: MonadThrow m => String -> m FlagName
- flagNameString :: FlagName -> String
- flagNameText :: FlagName -> Text
- fromCabalFlagName :: FlagName -> FlagName
- toCabalFlagName :: FlagName -> FlagName
- mkFlagName :: String -> Q Exp
Documentation
A flag name.
newtype FlagNameParseFail Source #
A parse fail.
flagNameParser :: Parser FlagName Source #
Attoparsec parser for a flag name
parseFlagName :: MonadThrow m => Text -> m FlagName Source #
Convenient way to parse a flag name from a Text
.
parseFlagNameFromString :: MonadThrow m => String -> m FlagName Source #
Convenience function for parsing from a String
flagNameString :: FlagName -> String Source #
Produce a string representation of a flag name.
flagNameText :: FlagName -> Text Source #
Produce a string representation of a flag name.
fromCabalFlagName :: FlagName -> FlagName Source #
Convert from a Cabal flag name.
toCabalFlagName :: FlagName -> FlagName Source #
Convert to a Cabal flag name.