depend directly on integer-gmp, rather than indirecting through integer
[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 Library {
27     if impl(ghc) {
28         build-depends: integer-gmp
29         build-depends: rts, ghc-prim
30         exposed-modules:
31             Foreign.Concurrent,
32             GHC.Arr,
33             GHC.Base,
34             GHC.Classes,
35             GHC.Conc,
36             GHC.ConsoleHandler,
37             GHC.Desugar,
38             GHC.Enum,
39             GHC.Environment,
40             GHC.Err,
41             GHC.Exception,
42             GHC.Exts,
43             GHC.Float,
44             GHC.ForeignPtr,
45             GHC.MVar,
46             GHC.IO,
47             GHC.IO.IOMode,
48             GHC.IO.Buffer,
49             GHC.IO.Device,
50             GHC.IO.BufferedIO,
51             GHC.IO.FD,
52             GHC.IO.Exception,
53             GHC.IO.Encoding,
54             GHC.IO.Encoding.Latin1,
55             GHC.IO.Encoding.UTF8,
56             GHC.IO.Encoding.UTF16,
57             GHC.IO.Encoding.UTF32,
58             GHC.IO.Encoding.Types,
59             GHC.IO.Encoding.Iconv,
60             GHC.IO.Handle,
61             GHC.IO.Handle.Types,
62             GHC.IO.Handle.Internals,
63             GHC.IO.Handle.FD,
64             GHC.IO.Handle.Text,
65             GHC.IOBase,
66             GHC.Handle,
67             GHC.IORef,
68             GHC.IOArray,
69             GHC.Int,
70             GHC.List,
71             GHC.Num,
72             GHC.PArr,
73             GHC.Pack,
74             GHC.Ptr,
75             GHC.Read,
76             GHC.Real,
77             GHC.ST,
78             GHC.STRef,
79             GHC.Show,
80             GHC.Stable,
81             GHC.Storable,
82             GHC.TopHandler,
83             GHC.Unicode,
84             GHC.Weak,
85             GHC.Word,
86             System.Timeout
87         extensions: MagicHash, ExistentialQuantification, Rank2Types,
88                     ScopedTypeVariables, UnboxedTuples,
89                     ForeignFunctionInterface, UnliftedFFITypes,
90                     DeriveDataTypeable, GeneralizedNewtypeDeriving,
91                     FlexibleInstances, StandaloneDeriving,
92                     PatternGuards, EmptyDataDecls, NoImplicitPrelude
93
94         if impl(ghc < 6.10) 
95            -- PatternSignatures was deprecated in 6.10
96            extensions: PatternSignatures
97     }
98     exposed-modules:
99         Control.Applicative,
100         Control.Arrow,
101         Control.Category,
102         Control.Concurrent,
103         Control.Concurrent.Chan,
104         Control.Concurrent.MVar,
105         Control.Concurrent.QSem,
106         Control.Concurrent.QSemN,
107         Control.Concurrent.SampleVar,
108         Control.Exception,
109         Control.Exception.Base
110         Control.OldException,
111         Control.Monad,
112         Control.Monad.Fix,
113         Control.Monad.Instances,
114         Control.Monad.ST
115         Control.Monad.ST.Lazy
116         Control.Monad.ST.Strict
117         Data.Bits,
118         Data.Bool,
119         Data.Char,
120         Data.Complex,
121         Data.Dynamic,
122         Data.Either,
123         Data.Eq,
124         Data.Data,
125         Data.Fixed,
126         Data.Foldable
127         Data.Function,
128         Data.HashTable,
129         Data.IORef,
130         Data.Int,
131         Data.Ix,
132         Data.List,
133         Data.Maybe,
134         Data.Monoid,
135         Data.Ord,
136         Data.Ratio,
137         Data.STRef
138         Data.STRef.Lazy
139         Data.STRef.Strict
140         Data.String,
141         Data.Traversable
142         Data.Tuple,
143         Data.Typeable,
144         Data.Unique,
145         Data.Version,
146         Data.Word,
147         Debug.Trace,
148         Foreign,
149         Foreign.C,
150         Foreign.C.Error,
151         Foreign.C.String,
152         Foreign.C.Types,
153         Foreign.ForeignPtr,
154         Foreign.Marshal,
155         Foreign.Marshal.Alloc,
156         Foreign.Marshal.Array,
157         Foreign.Marshal.Error,
158         Foreign.Marshal.Pool,
159         Foreign.Marshal.Utils,
160         Foreign.Ptr,
161         Foreign.StablePtr,
162         Foreign.Storable,
163         Numeric,
164         Prelude,
165         System.Console.GetOpt
166         System.CPUTime,
167         System.Environment,
168         System.Exit,
169         System.IO,
170         System.IO.Error,
171         System.IO.Unsafe,
172         System.Info,
173         System.Mem,
174         System.Mem.StableName,
175         System.Mem.Weak,
176         System.Posix.Internals,
177         System.Posix.Types,
178         Text.ParserCombinators.ReadP,
179         Text.ParserCombinators.ReadPrec,
180         Text.Printf,
181         Text.Read,
182         Text.Read.Lex,
183         Text.Show,
184         Text.Show.Functions
185         Unsafe.Coerce
186     c-sources:
187         cbits/PrelIOUtils.c
188         cbits/WCsubst.c
189         cbits/Win32Utils.c
190         cbits/consUtils.c
191         cbits/iconv.c
192         cbits/inputReady.c
193         cbits/selectUtils.c
194     include-dirs: include
195     includes:    HsBase.h
196     install-includes:    HsBase.h HsBaseConfig.h WCsubst.h consUtils.h Typeable.h
197     if os(windows) {
198         extra-libraries: wsock32, user32, shell32
199     }
200     extensions: CPP
201     -- We need to set the package name to base (without a version number)
202     -- as it's magic.
203     ghc-options: -package-name base
204     nhc98-options: -H4M -K3M
205 }