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

CabalGild.Unstable.Type.Set

Synopsis

Documentation

newtype Set s b a Source #

A thin wrapper around Set'. 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

Set 

Fields

Instances

Instances details
Newtype (Set a) (Set s b a) Source # 
Instance details

Defined in CabalGild.Unstable.Type.Set

Methods

pack :: Set0 a -> Set s b a #

unpack :: Set s b a -> Set0 a #

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

Defined in CabalGild.Unstable.Type.Set

Methods

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

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

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

Instance details

Defined in CabalGild.Unstable.Type.Set

(Newtype a b, Pretty b) => Pretty (Set CommaVCat b a) Source #

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

Instance details

Defined in CabalGild.Unstable.Type.Set

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

Defined in CabalGild.Unstable.Type.Set

Methods

pretty :: Set s b a -> Doc #

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