Distribution.Types.UnqualComponentName

Cabal-2.4.0.1: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Types.UnqualComponentName

Synopsis

- data UnqualComponentName
- unUnqualComponentName :: UnqualComponentName -> String
- mkUnqualComponentName :: String -> UnqualComponentName
- packageNameToUnqualComponentName :: PackageName -> UnqualComponentName
- unqualComponentNameToPackageName :: UnqualComponentName -> PackageName

# 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: Cabal-2.0.0.2

Instances

Eq UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods (==) :: UnqualComponentName -> UnqualComponentName -> Bool # (/=) :: UnqualComponentName -> UnqualComponentName -> Bool #
Data UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UnqualComponentName -> c UnqualComponentName Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UnqualComponentName Source # toConstr :: UnqualComponentName -> Constr Source # dataTypeOf :: UnqualComponentName -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UnqualComponentName) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UnqualComponentName) Source # gmapT :: (forall b. Data b => b -> b) -> UnqualComponentName -> UnqualComponentName Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UnqualComponentName -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UnqualComponentName -> r Source # gmapQ :: (forall d. Data d => d -> u) -> UnqualComponentName -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> UnqualComponentName -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> UnqualComponentName -> m UnqualComponentName Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UnqualComponentName -> m UnqualComponentName Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UnqualComponentName -> m UnqualComponentName Source #
Ord UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods compare :: UnqualComponentName -> UnqualComponentName -> Ordering # (<) :: UnqualComponentName -> UnqualComponentName -> Bool # (<=) :: UnqualComponentName -> UnqualComponentName -> Bool # (>) :: UnqualComponentName -> UnqualComponentName -> Bool # (>=) :: UnqualComponentName -> UnqualComponentName -> Bool # max :: UnqualComponentName -> UnqualComponentName -> UnqualComponentName # min :: UnqualComponentName -> UnqualComponentName -> UnqualComponentName #
Read UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods readsPrec :: Int -> ReadS UnqualComponentName Source # readList :: ReadS [UnqualComponentName] Source # readPrec :: ReadPrec UnqualComponentName Source # readListPrec :: ReadPrec [UnqualComponentName] Source #
Show UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods showsPrec :: Int -> UnqualComponentName -> ShowS Source # show :: UnqualComponentName -> String Source # showList :: [UnqualComponentName] -> ShowS Source #
IsString UnqualComponentName # | `mkUnqualComponentName` Since: Cabal-2.0.0.2
Instance details Defined in Distribution.Types.UnqualComponentName Methods fromString :: String -> UnqualComponentName Source #
Generic UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Associated Types type Rep UnqualComponentName :: Type -> Type Source # Methods from :: UnqualComponentName -> Rep UnqualComponentName x Source # to :: Rep UnqualComponentName x -> UnqualComponentName Source #
Semigroup UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods (<>) :: UnqualComponentName -> UnqualComponentName -> UnqualComponentName Source # sconcat :: NonEmpty UnqualComponentName -> UnqualComponentName Source # stimes :: Integral b => b -> UnqualComponentName -> UnqualComponentName Source #
Monoid UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods mempty :: UnqualComponentName Source # mappend :: UnqualComponentName -> UnqualComponentName -> UnqualComponentName Source # mconcat :: [UnqualComponentName] -> UnqualComponentName Source #
Binary UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods put :: UnqualComponentName -> Put Source # get :: Get UnqualComponentName Source # putList :: [UnqualComponentName] -> Put Source #
NFData UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods rnf :: UnqualComponentName -> () Source #
Pretty UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods pretty :: UnqualComponentName -> Doc #
Parsec UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods parsec :: CabalParsing m => m UnqualComponentName #
Text UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName Methods disp :: UnqualComponentName -> Doc # parse :: ReadP r UnqualComponentName #
type Rep UnqualComponentName # |
Instance details Defined in Distribution.Types.UnqualComponentName type Rep UnqualComponentName = D1 (MetaData "UnqualComponentName" "Distribution.Types.UnqualComponentName" "Cabal-2.4.0.1" True) (C1 (MetaCons "UnqualComponentName" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ShortText)))

unUnqualComponentName :: UnqualComponentName -> String #

Convert `UnqualComponentName` to `String`

Since: Cabal-2.0.0.2

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: Cabal-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: Cabal-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: Cabal-2.0.0.2