stack-1.4.0: The Haskell Tool Stack

Safe Haskell | None
Language | Haskell2010

Stack.Types.FlagName

Description

Names for flags.

Synopsis

- 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

data FlagName #

A flag name.

Instances

Eq FlagName # |
Methods (==) :: FlagName -> FlagName -> Bool # (/=) :: FlagName -> FlagName -> Bool #
Data FlagName # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FlagName -> c FlagName # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FlagName # toConstr :: FlagName -> Constr # dataTypeOf :: FlagName -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c FlagName) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FlagName) # gmapT :: (forall b. Data b => b -> b) -> FlagName -> FlagName # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FlagName -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FlagName -> r # gmapQ :: (forall d. Data d => d -> u) -> FlagName -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> FlagName -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> FlagName -> m FlagName # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FlagName -> m FlagName # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FlagName -> m FlagName #
Ord FlagName # |
Methods compare :: FlagName -> FlagName -> Ordering # (<) :: FlagName -> FlagName -> Bool # (<=) :: FlagName -> FlagName -> Bool # (>) :: FlagName -> FlagName -> Bool # (>=) :: FlagName -> FlagName -> Bool # max :: FlagName -> FlagName -> FlagName # min :: FlagName -> FlagName -> FlagName #
Show FlagName # |
Methods showsPrec :: Int -> FlagName -> ShowS # show :: FlagName -> String # showList :: [FlagName] -> ShowS #
Generic FlagName # |
Associated Types type Rep FlagName :: * -> * # Methods from :: FlagName -> Rep FlagName x # to :: Rep FlagName x -> FlagName #
Lift FlagName # |
Methods lift :: FlagName -> Q Exp #
Hashable FlagName # |
Methods hashWithSalt :: Int -> FlagName -> Int # hash :: FlagName -> Int #
FromJSON FlagName # |
Methods parseJSON :: Value -> Parser FlagName # parseJSONList :: Value -> Parser [FlagName] #
FromJSONKey FlagName # |
Methods fromJSONKey :: FromJSONKeyFunction FlagName # fromJSONKeyList :: FromJSONKeyFunction [FlagName] #
ToJSONKey FlagName # |
Methods toJSONKey :: ToJSONKeyFunction FlagName # toJSONKeyList :: ToJSONKeyFunction [FlagName] #
NFData FlagName # |
Methods rnf :: FlagName -> () #
Store FlagName # |
Methods size :: Size FlagName # poke :: FlagName -> Poke () # peek :: Peek FlagName #
type Rep FlagName # |
type Rep FlagName = D1 (MetaData "FlagName" "Stack.Types.FlagName" "stack-1.4.0-5VbagGyw9hyAgBJq8WQvrq" True) (C1 (MetaCons "FlagName" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

newtype FlagNameParseFail #

A parse fail.

Constructors

FlagNameParseFail Text |

Instances

Show FlagNameParseFail # |
Methods showsPrec :: Int -> FlagNameParseFail -> ShowS # show :: FlagNameParseFail -> String # showList :: [FlagNameParseFail] -> ShowS #
Exception FlagNameParseFail # |
Methods toException :: FlagNameParseFail -> SomeException # fromException :: SomeException -> Maybe FlagNameParseFail # displayException :: FlagNameParseFail -> String #

flagNameParser :: Parser FlagName #

Attoparsec parser for a flag name

parseFlagName :: MonadThrow m => Text -> m FlagName #

Convenient way to parse a flag name from a `Text`.

parseFlagNameFromString :: MonadThrow m => String -> m FlagName #

Convenience function for parsing from a `String`

flagNameString :: FlagName -> String #

Produce a string representation of a flag name.

flagNameText :: FlagName -> Text #

Produce a string representation of a flag name.

fromCabalFlagName :: FlagName -> FlagName #

Convert from a Cabal flag name.

toCabalFlagName :: FlagName -> FlagName #

Convert to a Cabal flag name.

mkFlagName :: String -> Q Exp #

Make a flag name.