Cabal-syntax-3.12.1.0: A library for working with .cabal files

Safe Haskell | None
Language | Haskell2010

Distribution.Types.ComponentName

Synopsis

- data ComponentName where
  - CLibName LibraryName
  - CNotLibName NotLibComponentName
  - pattern CFLibName :: UnqualComponentName -> ComponentName
  - pattern CExeName :: UnqualComponentName -> ComponentName
  - pattern CTestName :: UnqualComponentName -> ComponentName
  - pattern CBenchName :: UnqualComponentName -> ComponentName
- showComponentName :: ComponentName -> String
- componentNameRaw :: ComponentName -> String
- componentNameStanza :: ComponentName -> String
- componentNameString :: ComponentName -> Maybe UnqualComponentName

# Documentation

data ComponentName Source #

Constructors

CLibName LibraryName |
CNotLibName NotLibComponentName |

Bundled Patterns

pattern CFLibName :: UnqualComponentName -> ComponentName |
pattern CExeName :: UnqualComponentName -> ComponentName |
pattern CTestName :: UnqualComponentName -> ComponentName |
pattern CBenchName :: UnqualComponentName -> ComponentName |

#### Instances

Instances details

Parsec ComponentName Source # |
Instance details Defined in Distribution.Types.ComponentName Methods parsec :: CabalParsing m => m ComponentName Source #
Pretty ComponentName Source # |
Instance details Defined in Distribution.Types.ComponentName Methods pretty :: ComponentName -> Doc Source # prettyVersioned :: CabalSpecVersion -> ComponentName -> Doc Source #
Structured ComponentName Source # |
Instance details Defined in Distribution.Types.ComponentName Methods structure :: Proxy ComponentName -> Structure Source # structureHash' :: Tagged ComponentName MD5
Binary ComponentName Source # |
Instance details Defined in Distribution.Types.ComponentName Methods put :: ComponentName -> Put Source # get :: Get ComponentName Source # putList :: [ComponentName] -> Put Source #
Generic ComponentName Source # |

Instance details

Defined in Distribution.Types.ComponentName

Associated Types

type Rep ComponentName |
Instance details Defined in Distribution.Types.ComponentName type Rep ComponentName

Methods

from :: ComponentName -> Rep ComponentName x #

to :: Rep ComponentName x -> ComponentName #

Read ComponentName Source # |
Instance details Defined in Distribution.Types.ComponentName Methods readsPrec :: Int -> ReadS ComponentName # readList :: ReadS [ComponentName] # readPrec :: ReadPrec ComponentName # readListPrec :: ReadPrec [ComponentName] #
Show ComponentName Source # |
Instance details Defined in Distribution.Types.ComponentName Methods showsPrec :: Int -> ComponentName -> ShowS # show :: ComponentName -> String # showList :: [ComponentName] -> ShowS #
Eq ComponentName Source # |
Instance details Defined in Distribution.Types.ComponentName Methods (==) :: ComponentName -> ComponentName -> Bool # (/=) :: ComponentName -> ComponentName -> Bool #
Ord ComponentName Source # |

Instance details

Defined in Distribution.Types.ComponentName

Methods

compare :: ComponentName -> ComponentName -> Ordering #

(<) :: ComponentName -> ComponentName -> Bool #

(<=) :: ComponentName -> ComponentName -> Bool #

(>) :: ComponentName -> ComponentName -> Bool #

(>=) :: ComponentName -> ComponentName -> Bool #

max :: ComponentName -> ComponentName -> ComponentName #

min :: ComponentName -> ComponentName -> ComponentName #

type Rep ComponentName Source # |
Instance details Defined in Distribution.Types.ComponentName type Rep ComponentName

showComponentName :: ComponentName -> String Source #

componentNameRaw :: ComponentName -> String Source #

componentNameStanza :: ComponentName -> String Source #

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.