Fix "Cabal check" warnings
[ghc-base.git] / base.cabal
1 name:           base
2 version:        4.1.0.0
3 license:        BSD3
4 license-file:   LICENSE
5 maintainer:     libraries@haskell.org
6 bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/base
7 synopsis:       Basic libraries
8 description:
9     This package contains the Prelude and its support libraries,
10     and a large collection of useful libraries ranging from data
11     structures to parsing combinators and debugging utilities.
12 cabal-version:  >=1.6
13 build-type: Configure
14 extra-tmp-files:
15                 config.log config.status autom4te.cache
16                 include/HsBaseConfig.h
17 extra-source-files:
18                 config.guess config.sub install-sh
19                 aclocal.m4 configure.ac configure
20                 include/CTypes.h
21
22 source-repository head
23     type:     darcs
24     location: http://darcs.haskell.org/packages/base/
25
26 Flag integer-simple
27     Description: Use integer-simple
28
29 Library {
30     if impl(ghc) {
31         if flag(integer-simple)
32             build-depends: integer-simple
33         else
34             build-depends: integer-gmp
35             cpp-options: -DOPTIMISE_INTEGER_GCD_LCM
36         build-depends: rts, ghc-prim
37         exposed-modules:
38             Foreign.Concurrent,
39             GHC.Arr,
40             GHC.Base,
41             GHC.Classes,
42             GHC.Conc,
43             GHC.ConsoleHandler,
44             GHC.Constants,
45             GHC.Desugar,
46             GHC.Enum,
47             GHC.Environment,
48             GHC.Err,
49             GHC.Exception,
50             GHC.Exts,
51             GHC.Float,
52             GHC.ForeignPtr,
53             GHC.MVar,
54             GHC.IO,
55             GHC.IO.IOMode,
56             GHC.IO.Buffer,
57             GHC.IO.Device,
58             GHC.IO.BufferedIO,
59             GHC.IO.FD,
60             GHC.IO.Exception,
61             GHC.IO.Encoding,
62             GHC.IO.Encoding.Latin1,
63             GHC.IO.Encoding.UTF8,
64             GHC.IO.Encoding.UTF16,
65             GHC.IO.Encoding.UTF32,
66             GHC.IO.Encoding.Types,
67             GHC.IO.Encoding.Iconv,
68             GHC.IO.Handle,
69             GHC.IO.Handle.Types,
70             GHC.IO.Handle.Internals,
71             GHC.IO.Handle.FD,
72             GHC.IO.Handle.Text,
73             GHC.IOBase,
74             GHC.Handle,
75             GHC.IORef,
76             GHC.IOArray,
77             GHC.Int,
78             GHC.List,
79             GHC.Num,
80             GHC.PArr,
81             GHC.Pack,
82             GHC.Ptr,
83             GHC.Read,
84             GHC.Real,
85             GHC.ST,
86             GHC.STRef,
87             GHC.Show,
88             GHC.Stable,
89             GHC.Storable,
90             GHC.TopHandler,
91             GHC.Unicode,
92             GHC.Weak,
93             GHC.Word,
94             System.Timeout
95         extensions: MagicHash, ExistentialQuantification, Rank2Types,
96                     ScopedTypeVariables, UnboxedTuples,
97                     ForeignFunctionInterface, UnliftedFFITypes,
98                     DeriveDataTypeable, GeneralizedNewtypeDeriving,
99                     FlexibleInstances, StandaloneDeriving,
100                     PatternGuards, EmptyDataDecls, NoImplicitPrelude
101
102         if impl(ghc < 6.10) 
103            -- PatternSignatures was deprecated in 6.10
104            extensions: PatternSignatures
105     }
106     exposed-modules:
107         Control.Applicative,
108         Control.Arrow,
109         Control.Category,
110         Control.Concurrent,
111         Control.Concurrent.Chan,
112         Control.Concurrent.MVar,
113         Control.Concurrent.QSem,
114         Control.Concurrent.QSemN,
115         Control.Concurrent.SampleVar,
116         Control.Exception,
117         Control.Exception.Base
118         Control.OldException,
119         Control.Monad,
120         Control.Monad.Fix,
121         Control.Monad.Instances,
122         Control.Monad.ST
123         Control.Monad.ST.Lazy
124         Control.Monad.ST.Strict
125         Data.Bits,
126         Data.Bool,
127         Data.Char,
128         Data.Complex,
129         Data.Dynamic,
130         Data.Either,
131         Data.Eq,
132         Data.Data,
133         Data.Fixed,
134         Data.Foldable
135         Data.Function,
136         Data.HashTable,
137         Data.IORef,
138         Data.Int,
139         Data.Ix,
140         Data.List,
141         Data.Maybe,
142         Data.Monoid,
143         Data.Ord,
144         Data.Ratio,
145         Data.STRef
146         Data.STRef.Lazy
147         Data.STRef.Strict
148         Data.String,
149         Data.Traversable
150         Data.Tuple,
151         Data.Typeable,
152         Data.Unique,
153         Data.Version,
154         Data.Word,
155         Debug.Trace,
156         Foreign,
157         Foreign.C,
158         Foreign.C.Error,
159         Foreign.C.String,
160         Foreign.C.Types,
161         Foreign.ForeignPtr,
162         Foreign.Marshal,
163         Foreign.Marshal.Alloc,
164         Foreign.Marshal.Array,
165         Foreign.Marshal.Error,
166         Foreign.Marshal.Pool,
167         Foreign.Marshal.Utils,
168         Foreign.Ptr,
169         Foreign.StablePtr,
170         Foreign.Storable,
171         Numeric,
172         Prelude,
173         System.Console.GetOpt
174         System.CPUTime,
175         System.Environment,
176         System.Exit,
177         System.IO,
178         System.IO.Error,
179         System.IO.Unsafe,
180         System.Info,
181         System.Mem,
182         System.Mem.StableName,
183         System.Mem.Weak,
184         System.Posix.Internals,
185         System.Posix.Types,
186         Text.ParserCombinators.ReadP,
187         Text.ParserCombinators.ReadPrec,
188         Text.Printf,
189         Text.Read,
190         Text.Read.Lex,
191         Text.Show,
192         Text.Show.Functions
193         Unsafe.Coerce
194     c-sources:
195         cbits/PrelIOUtils.c
196         cbits/WCsubst.c
197         cbits/Win32Utils.c
198         cbits/consUtils.c
199         cbits/iconv.c
200         cbits/inputReady.c
201         cbits/selectUtils.c
202         cbits/primFloat.c
203     include-dirs: include
204     includes:    HsBase.h
205     install-includes:    HsBase.h HsBaseConfig.h WCsubst.h consUtils.h Typeable.h
206     if os(windows) {
207         extra-libraries: wsock32, user32, shell32
208     }
209     extensions: CPP
210     -- We need to set the package name to base (without a version number)
211     -- as it's magic.
212     ghc-options: -package-name base
213     nhc98-options: -H4M -K3M
214 }