Only check -Wunused-package by project
[cabal.git] / Cabal-syntax / Cabal-syntax.cabal
bloba6bdd769d5feaa06f319e55a44a3f2508428cf9e
1 cabal-version: 2.2
2 name:          Cabal-syntax
3 version:       3.11.0.0
4 copyright:     2003-2024, Cabal Development Team (see AUTHORS file)
5 license:       BSD-3-Clause
6 license-file:  LICENSE
7 author:        Cabal Development Team <cabal-devel@haskell.org>
8 maintainer:    cabal-devel@haskell.org
9 homepage:      http://www.haskell.org/cabal/
10 bug-reports:   https://github.com/haskell/cabal/issues
11 synopsis:      A library for working with .cabal files
12 description:
13     This library provides tools for reading and manipulating the .cabal file
14     format.
15 category:       Distribution
16 build-type:     Simple
18 extra-doc-files:
19   README.md ChangeLog.md
21 source-repository head
22   type:     git
23   location: https://github.com/haskell/cabal/
24   subdir:   Cabal-syntax
26 library
27   default-language: Haskell2010
28   hs-source-dirs: src
30   build-depends:
31     array      >= 0.4.0.1  && < 0.6,
32     base       >= 4.9      && < 5,
33     binary     >= 0.7      && < 0.9,
34     bytestring >= 0.10.0.0 && < 0.13,
35     containers >= 0.5.0.0  && < 0.8,
36     deepseq    >= 1.3.0.1  && < 1.6,
37     directory  >= 1.2      && < 1.4,
38     filepath   >= 1.3.0.1  && < 1.6,
39     mtl        >= 2.1      && < 2.4,
40     parsec     >= 3.1.13.0 && < 3.2,
41     pretty     >= 1.1.1    && < 1.2,
42     text       (>= 1.2.3.0 && < 1.3) || (>= 2.0 && < 2.2),
43     time       >= 1.4.0.1  && < 1.15,
44     -- transformers-0.4.0.0 doesn't have record syntax e.g. for Identity
45     -- See also https://github.com/ekmett/transformers-compat/issues/35
46     transformers (>= 0.3      && < 0.4) || (>=0.4.1.0 && <0.7)
48   ghc-options:
49     -Wall
50     -fno-ignore-asserts
51     -fwarn-tabs
52     -fwarn-incomplete-uni-patterns
53     -fwarn-incomplete-record-updates
54     -fno-warn-unticked-promoted-constructors
56   if impl(ghc >= 8.0)
57     ghc-options: -Wcompat -Wnoncanonical-monad-instances
59   if impl(ghc >= 8.0) && impl(ghc < 8.8)
60     ghc-options: -Wnoncanonical-monadfail-instances
62   build-tool-depends: alex:alex
64   exposed-modules:
65     Distribution.Backpack
66     Distribution.CabalSpecVersion
67     Distribution.Compat.Binary
68     Distribution.Compat.CharParsing
69     Distribution.Compat.DList
70     Distribution.Compat.Exception
71     Distribution.Compat.Graph
72     Distribution.Compat.Lens
73     Distribution.Compat.MonadFail
74     Distribution.Compat.Newtype
75     Distribution.Compat.NonEmptySet
76     Distribution.Compat.Parsing
77     Distribution.Compat.Prelude
78     Distribution.Compat.Semigroup
79     Distribution.Compat.Typeable
80     Distribution.Compiler
81     Distribution.FieldGrammar
82     Distribution.FieldGrammar.Class
83     Distribution.FieldGrammar.FieldDescrs
84     Distribution.FieldGrammar.Newtypes
85     Distribution.FieldGrammar.Parsec
86     Distribution.FieldGrammar.Pretty
87     Distribution.Fields
88     Distribution.Fields.ConfVar
89     Distribution.Fields.Field
90     Distribution.Fields.Lexer
91     Distribution.Fields.LexerMonad
92     Distribution.Fields.ParseResult
93     Distribution.Fields.Parser
94     Distribution.Fields.Pretty
95     Distribution.InstalledPackageInfo
96     Distribution.License
97     Distribution.ModuleName
98     Distribution.Package
99     Distribution.PackageDescription
100     Distribution.PackageDescription.Configuration
101     Distribution.PackageDescription.FieldGrammar
102     Distribution.PackageDescription.Parsec
103     Distribution.PackageDescription.PrettyPrint
104     Distribution.PackageDescription.Quirks
105     Distribution.PackageDescription.Utils
106     Distribution.Parsec
107     Distribution.Parsec.Error
108     Distribution.Parsec.FieldLineStream
109     Distribution.Parsec.Position
110     Distribution.Parsec.Warning
111     Distribution.Pretty
112     Distribution.SPDX
113     Distribution.SPDX.License
114     Distribution.SPDX.LicenseExceptionId
115     Distribution.SPDX.LicenseExpression
116     Distribution.SPDX.LicenseId
117     Distribution.SPDX.LicenseListVersion
118     Distribution.SPDX.LicenseReference
119     Distribution.System
120     Distribution.Text
121     Distribution.Types.AbiDependency
122     Distribution.Types.AbiHash
123     Distribution.Types.Benchmark
124     Distribution.Types.Benchmark.Lens
125     Distribution.Types.BenchmarkInterface
126     Distribution.Types.BenchmarkType
127     Distribution.Types.BuildInfo
128     Distribution.Types.BuildInfo.Lens
129     Distribution.Types.BuildType
130     Distribution.Types.Component
131     Distribution.Types.ComponentId
132     Distribution.Types.ComponentName
133     Distribution.Types.ComponentRequestedSpec
134     Distribution.Types.CondTree
135     Distribution.Types.Condition
136     Distribution.Types.ConfVar
137     Distribution.Types.Dependency
138     Distribution.Types.DependencyMap
139     Distribution.Types.ExeDependency
140     Distribution.Types.Executable
141     Distribution.Types.Executable.Lens
142     Distribution.Types.ExecutableScope
143     Distribution.Types.ExposedModule
144     Distribution.Types.Flag
145     Distribution.Types.ForeignLib
146     Distribution.Types.ForeignLib.Lens
147     Distribution.Types.ForeignLibOption
148     Distribution.Types.ForeignLibType
149     Distribution.Types.GenericPackageDescription
150     Distribution.Types.GenericPackageDescription.Lens
151     Distribution.Types.HookedBuildInfo
152     Distribution.Types.IncludeRenaming
153     Distribution.Types.InstalledPackageInfo
154     Distribution.Types.InstalledPackageInfo.Lens
155     Distribution.Types.InstalledPackageInfo.FieldGrammar
156     Distribution.Types.LegacyExeDependency
157     Distribution.Types.Lens
158     Distribution.Types.Library
159     Distribution.Types.Library.Lens
160     Distribution.Types.LibraryName
161     Distribution.Types.LibraryVisibility
162     Distribution.Types.Mixin
163     Distribution.Types.Module
164     Distribution.Types.ModuleReexport
165     Distribution.Types.ModuleRenaming
166     Distribution.Types.MungedPackageId
167     Distribution.Types.MungedPackageName
168     Distribution.Types.PackageDescription
169     Distribution.Types.PackageDescription.Lens
170     Distribution.Types.PackageId
171     Distribution.Types.PackageId.Lens
172     Distribution.Types.PackageName
173     Distribution.Types.PackageVersionConstraint
174     Distribution.Types.PkgconfigDependency
175     Distribution.Types.PkgconfigName
176     Distribution.Types.PkgconfigVersion
177     Distribution.Types.PkgconfigVersionRange
178     Distribution.Types.SetupBuildInfo
179     Distribution.Types.SetupBuildInfo.Lens
180     Distribution.Types.SourceRepo
181     Distribution.Types.SourceRepo.Lens
182     Distribution.Types.TestSuite
183     Distribution.Types.TestSuite.Lens
184     Distribution.Types.TestSuiteInterface
185     Distribution.Types.TestType
186     Distribution.Types.UnitId
187     Distribution.Types.UnqualComponentName
188     Distribution.Types.Version
189     Distribution.Types.VersionInterval
190     Distribution.Types.VersionInterval.Legacy
191     Distribution.Types.VersionRange
192     Distribution.Types.VersionRange.Internal
193     Distribution.Utils.Base62
194     Distribution.Utils.Generic
195     Distribution.Utils.MD5
196     Distribution.Utils.Path
197     Distribution.Utils.ShortText
198     Distribution.Utils.String
199     Distribution.Utils.Structured
200     Distribution.Version
201     Language.Haskell.Extension
203   other-extensions:
204     BangPatterns
205     CPP
206     DefaultSignatures
207     DeriveDataTypeable
208     DeriveFoldable
209     DeriveFunctor
210     DeriveGeneric
211     DeriveTraversable
212     ExistentialQuantification
213     FlexibleContexts
214     FlexibleInstances
215     GeneralizedNewtypeDeriving
216     ImplicitParams
217     KindSignatures
218     NondecreasingIndentation
219     OverloadedStrings
220     PatternSynonyms
221     RankNTypes
222     RecordWildCards
223     ScopedTypeVariables
224     StandaloneDeriving
225     Trustworthy
226     TypeFamilies
227     TypeOperators
228     TypeSynonymInstances
229     UndecidableInstances