HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleCabal-syntax-3.12.1.0Haskell2010

Distribution.Types.UnqualComponentName

  • 1 type
  • 6 values
newtypenewtype 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.

Instances15Eq, Data, Ord, Read, Show, IsString, …

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.

2018-12-21: These "legacy" situations are not legacy. We can build-depends on the internal library. However Now dependency contains Set LibraryName, and we should use that.

valuecombineNames
  1. :: (Monoid b, Eq b, Show b)
  2. => a
  3. -> a
  4. -> a -> b
  5. -> String
  6. -> b
#

Combine names in targets if one name is empty or both names are equal (partial function). Useful in Semigroup and similar instances.