cabal-gild
Safe HaskellNone
LanguageHaskell2010

CabalGild.Unstable.Extra.Name

Synopsis

Documentation

annotation :: Name a -> a Source #

Extracts the annotation from the given Name.

annotationLens :: forall a f. Functor f => LensLike f (Name a) (Name a) a a Source #

A lens for the annotation.

value :: Name a -> FieldName Source #

Extracts the value from the given Name.

isIf :: Name a -> Bool Source #

Returns true when the name is "if", false otherwise.

isElif :: CabalSpecVersion -> Name a -> Bool Source #

Returns true when the name is "elif", false otherwise.

isElse :: Name a -> Bool Source #

Returns true when the name is "else", false otherwise.