Cabal-2.0.1.0: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Types.PkgconfigName

Synopsis

- data PkgconfigName
- unPkgconfigName :: PkgconfigName -> String
- mkPkgconfigName :: String -> PkgconfigName

# Documentation

data PkgconfigName #

A pkg-config library name

This is parsed as any valid argument to the pkg-config utility.

Since: 2.0.0.2

Instances

Eq PkgconfigName # |
Methods (==) :: PkgconfigName -> PkgconfigName -> Bool # (/=) :: PkgconfigName -> PkgconfigName -> Bool #
Data PkgconfigName # |

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PkgconfigName -> c PkgconfigName Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PkgconfigName Source #

toConstr :: PkgconfigName -> Constr Source #

dataTypeOf :: PkgconfigName -> DataType Source #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PkgconfigName) Source #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PkgconfigName) Source #

gmapT :: (forall b. Data b => b -> b) -> PkgconfigName -> PkgconfigName Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PkgconfigName -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PkgconfigName -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> PkgconfigName -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PkgconfigName -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PkgconfigName -> m PkgconfigName Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PkgconfigName -> m PkgconfigName Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PkgconfigName -> m PkgconfigName Source #

Ord PkgconfigName # |
Methods compare :: PkgconfigName -> PkgconfigName -> Ordering # (<) :: PkgconfigName -> PkgconfigName -> Bool # (<=) :: PkgconfigName -> PkgconfigName -> Bool # (>) :: PkgconfigName -> PkgconfigName -> Bool # (>=) :: PkgconfigName -> PkgconfigName -> Bool # max :: PkgconfigName -> PkgconfigName -> PkgconfigName # min :: PkgconfigName -> PkgconfigName -> PkgconfigName #
Read PkgconfigName # |
Methods readsPrec :: Int -> ReadS PkgconfigName Source # readList :: ReadS [PkgconfigName] Source # readPrec :: ReadPrec PkgconfigName Source # readListPrec :: ReadPrec [PkgconfigName] Source #
Show PkgconfigName # |
Methods showsPrec :: Int -> PkgconfigName -> ShowS Source # show :: PkgconfigName -> String Source # showList :: [PkgconfigName] -> ShowS Source #
IsString PkgconfigName # | `mkPkgconfigName` Since: 2.0.0.2
Methods fromString :: String -> PkgconfigName Source #
Generic PkgconfigName # |
Associated Types type Rep PkgconfigName :: * -> * Source # Methods from :: PkgconfigName -> Rep PkgconfigName x Source # to :: Rep PkgconfigName x -> PkgconfigName Source #
NFData PkgconfigName # |
Methods rnf :: PkgconfigName -> () Source #
Binary PkgconfigName # |
Methods put :: PkgconfigName -> Put Source # get :: Get PkgconfigName Source # putList :: [PkgconfigName] -> Put Source #
Text PkgconfigName # |
Methods disp :: PkgconfigName -> Doc # parse :: ReadP r PkgconfigName #
type Rep PkgconfigName # |
type Rep PkgconfigName = D1 * (MetaData "PkgconfigName" "Distribution.Types.PkgconfigName" "Cabal-2.0.1.0" True) (C1 * (MetaCons "PkgconfigName" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ShortText)))

unPkgconfigName :: PkgconfigName -> String #

Convert `PkgconfigName` to `String`

Since: 2.0.0.2

mkPkgconfigName :: String -> PkgconfigName #

Construct a `PkgconfigName` from a `String`

`mkPkgconfigName` is the inverse to `unPkgconfigName`

Note: No validations are performed to ensure that the resulting `PkgconfigName` is valid

Since: 2.0.0.2