cabal-gild-1.3.1.0: Formats package descriptions.
Safe HaskellSafe-Inferred
LanguageHaskell2010

CabalGild.Unstable.Type.List

Synopsis

Documentation

newtype List s b a Source #

A thin wrapper around List. This is used to define custom instances of Pretty that use trailing commas when the Cabal spec version is recent enough (at least 2.2).

Constructors

List 

Fields

Instances

Instances details
Newtype [a] (List s b a) Source # 
Instance details

Defined in CabalGild.Unstable.Type.List

Methods

pack :: [a] -> List s b a #

unpack :: List s b a -> [a] #

(Newtype a b, Parsec b, Sep s) => Parsec (List s b a) Source # 
Instance details

Defined in CabalGild.Unstable.Type.List

Methods

parsec :: CabalParsing m => m (List s b a) #

(Newtype a b, Pretty b) => Pretty (List CommaFSep b a) Source #

Overlaps the more general instance in order to use trailing commas when possible.

Instance details

Defined in CabalGild.Unstable.Type.List

(Newtype a b, Pretty b, Sep s) => Pretty (List s b a) Source # 
Instance details

Defined in CabalGild.Unstable.Type.List

Methods

pretty :: List s b a -> Doc #

prettyVersioned :: CabalSpecVersion -> List s b a -> Doc #