Cabal-syntax-3.9.0.0: A library for working with .cabal files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Types.ComponentName

Synopsis

Documentation

data ComponentName Source #

Constructors

CLibName LibraryName 
CNotLibName NotLibComponentName 

Instances

Instances details
Parsec ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Pretty ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Structured ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Generic ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Associated Types

type Rep ComponentName :: Type -> Type Source #

Read ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Show ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Binary ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Eq ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Ord ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

type Rep ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

componentNameString :: ComponentName -> Maybe UnqualComponentName Source #

This gets the underlying unqualified component name. In fact, it is guaranteed to uniquely identify a component, returning Nothing if the ComponentName was for the public library.