make LTS branch pre-releases
[cabal.git] / Cabal-syntax / src / Distribution / Fields.hs
blob4688bf547d954583152cdf5f20f77ca35292b36d
1 -- | Utilities to work with @.cabal@ like file structure.
2 module Distribution.Fields
3 ( -- * Types
4 Field (..)
5 , Name (..)
6 , FieldLine (..)
7 , SectionArg (..)
8 , FieldName
10 -- * Grammar and parsing
13 -- See "Distribution.Fields.Parser" for grammar.
14 , readFields
15 , readFields'
17 -- ** ParseResult
18 , ParseResult
19 , runParseResult
20 , parseWarning
21 , parseWarnings
22 , parseFailure
23 , parseFatalFailure
25 -- ** Warnings
26 , PWarnType (..)
27 , PWarning (..)
28 , showPWarning
30 -- ** Errors
31 , PError (..)
32 , showPError
34 -- * Pretty printing
35 , CommentPosition (..)
36 , PrettyField (..)
37 , showFields
39 -- ** Transformation from Field
40 , genericFromParsecFields
41 , fromParsecFields
42 ) where
44 import Distribution.Fields.Field
45 import Distribution.Fields.ParseResult
46 import Distribution.Fields.Parser
47 import Distribution.Fields.Pretty
48 import Distribution.Parsec.Error
49 import Distribution.Parsec.Warning