Cabal-2.0.1.0: A framework for packaging Haskell software

Safe HaskellNone
LanguageHaskell2010

Distribution.Types.UnqualComponentName

Synopsis

Documentation

data UnqualComponentName #

An unqualified component name, for any kind of component.

This is distinguished from a ComponentName and ComponentId. The former also states which of a library, executable, etc the name refers too. The later uniquely identifiers a component and its closure.

Since: 2.0.0.2

Instances

Eq UnqualComponentName # 
Data UnqualComponentName # 

Methods

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

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

toConstr :: UnqualComponentName -> Constr #

dataTypeOf :: UnqualComponentName -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord UnqualComponentName # 
Read UnqualComponentName # 
Show UnqualComponentName # 
IsString UnqualComponentName #

mkUnqualComponentName

Since: 2.0.0.2

Generic UnqualComponentName # 
Semigroup UnqualComponentName # 
Monoid UnqualComponentName # 
Binary UnqualComponentName # 
NFData UnqualComponentName # 

Methods

rnf :: UnqualComponentName -> () #

Text UnqualComponentName # 
type Rep UnqualComponentName # 
type Rep UnqualComponentName = D1 * (MetaData "UnqualComponentName" "Distribution.Types.UnqualComponentName" "Cabal-2.0.1.0-Jra8tLewAwA6OcEyyf1WGK" True) (C1 * (MetaCons "UnqualComponentName" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ShortText)))

mkUnqualComponentName :: String -> UnqualComponentName #

Construct a UnqualComponentName from a String

mkUnqualComponentName is the inverse to unUnqualComponentName

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

Since: 2.0.0.2

packageNameToUnqualComponentName :: PackageName -> UnqualComponentName #

Converts a package name to an unqualified component name

Useful in legacy situations where a package name may refer to an internal component, if one is defined with that name.

Since: 2.0.0.2

unqualComponentNameToPackageName :: UnqualComponentName -> PackageName #

Converts an unqualified component name to a package name

packageNameToUnqualComponentName is the inverse of unqualComponentNameToPackageName.

Useful in legacy situations where a package name may refer to an internal component, if one is defined with that name.

Since: 2.0.0.2