Add an import to fix build ordering
[packages/base.git] / base.cabal
1 name:           base
2 version:        4.7.0.0
3 -- GHC 7.6.1 released with 4.6.0.0
4 license:        BSD3
5 license-file:   LICENSE
6 maintainer:     libraries@haskell.org
7 bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/base
8 synopsis:       Basic libraries
9 description:
10     This package contains the Prelude and its support libraries,
11     and a large collection of useful libraries ranging from data
12     structures to parsing combinators and debugging utilities.
13 cabal-version:  >=1.6
14 build-type: Configure
15 extra-tmp-files:
16                 config.log config.status autom4te.cache
17                 include/HsBaseConfig.h include/EventConfig.h
18 extra-source-files:
19                 config.guess config.sub install-sh
20                 aclocal.m4 configure.ac configure
21                 include/CTypes.h include/md5.h
22
23 source-repository head
24     type:     git
25     location: http://darcs.haskell.org/packages/base.git/
26
27 Flag integer-simple
28     Description: Use integer-simple
29
30 Library {
31     if impl(ghc) {
32         if flag(integer-simple)
33             build-depends: integer-simple
34         else
35             build-depends: integer-gmp
36             cpp-options: -DOPTIMISE_INTEGER_GCD_LCM
37         build-depends: rts, ghc-prim
38         exposed-modules:
39             Foreign.Concurrent,
40             GHC.Arr,
41             GHC.Base,
42             GHC.Char,
43             GHC.Conc,
44             GHC.Conc.IO,
45             GHC.Conc.Signal,
46             GHC.Conc.Sync,
47             GHC.ConsoleHandler,
48             GHC.Constants,
49             GHC.Desugar,
50             GHC.Enum,
51             GHC.Environment,
52             GHC.Err,
53             GHC.Exception,
54             GHC.Exts,
55             GHC.Fingerprint,
56             GHC.Fingerprint.Type,
57             GHC.Float,
58             GHC.Float.ConversionUtils,
59             GHC.Float.RealFracMethods,
60             GHC.Foreign,
61             GHC.ForeignPtr,
62             GHC.Generics,
63             GHC.GHCi,
64             GHC.IO,
65             GHC.IO.Buffer,
66             GHC.IO.BufferedIO,
67             GHC.IO.Device,
68             GHC.IO.Encoding,
69             GHC.IO.Encoding.CodePage,
70             GHC.IO.Encoding.Failure,
71             GHC.IO.Encoding.Iconv,
72             GHC.IO.Encoding.Latin1,
73             GHC.IO.Encoding.Types,
74             GHC.IO.Encoding.UTF16,
75             GHC.IO.Encoding.UTF32,
76             GHC.IO.Encoding.UTF8,
77             GHC.IO.Exception,
78             GHC.IO.FD,
79             GHC.IO.Handle,
80             GHC.IO.Handle.FD,
81             GHC.IO.Handle.Internals,
82             GHC.IO.Handle.Text,
83             GHC.IO.Handle.Types,
84             GHC.IO.IOMode,
85             GHC.IOArray,
86             GHC.IORef,
87             GHC.IP,
88             GHC.Int,
89             GHC.List,
90             GHC.MVar,
91             GHC.Num,
92             GHC.PArr,
93             GHC.Pack,
94             GHC.Profiling,
95             GHC.Ptr,
96             GHC.Read,
97             GHC.Real,
98             GHC.ST,
99             GHC.Stack,
100             GHC.Stats,
101             GHC.Show,
102             GHC.Stable,
103             GHC.Storable,
104             GHC.STRef,
105             GHC.TypeLits,
106             GHC.TopHandler,
107             GHC.Unicode,
108             GHC.Weak,
109             GHC.Word,
110             System.Timeout
111         if os(windows)
112             exposed-modules: GHC.IO.Encoding.CodePage.API
113                              GHC.IO.Encoding.CodePage.Table
114                              GHC.Conc.Windows
115                              GHC.Windows
116     }
117     exposed-modules:
118         Control.Applicative,
119         Control.Arrow,
120         Control.Category,
121         Control.Concurrent,
122         Control.Concurrent.Chan,
123         Control.Concurrent.MVar,
124         Control.Concurrent.QSem,
125         Control.Concurrent.QSemN,
126         Control.Exception,
127         Control.Exception.Base
128         Control.Monad,
129         Control.Monad.Fix,
130         Control.Monad.Instances,
131         Control.Monad.ST,
132         Control.Monad.ST.Safe,
133         Control.Monad.ST.Unsafe,
134         Control.Monad.ST.Lazy,
135         Control.Monad.ST.Lazy.Safe,
136         Control.Monad.ST.Lazy.Unsafe,
137         Control.Monad.ST.Strict,
138         Control.Monad.Zip
139         Data.Bits,
140         Data.Bool,
141         Data.Char,
142         Data.Complex,
143         Data.Dynamic,
144         Data.Either,
145         Data.Eq,
146         Data.Data,
147         Data.Fixed,
148         Data.Foldable
149         Data.Function,
150         Data.Functor,
151         Data.IORef,
152         Data.Int,
153         Data.Ix,
154         Data.List,
155         Data.Maybe,
156         Data.Monoid,
157         Data.Ord,
158         Data.Ratio,
159         Data.STRef
160         Data.STRef.Lazy
161         Data.STRef.Strict
162         Data.String,
163         Data.Traversable
164         Data.Tuple,
165         Data.Typeable,
166         Data.Typeable.Internal,
167         Data.OldTypeable,
168         Data.OldTypeable.Internal,
169         Data.Unique,
170         Data.Version,
171         Data.Word,
172         Debug.Trace,
173         Foreign,
174         Foreign.C,
175         Foreign.C.Error,
176         Foreign.C.String,
177         Foreign.C.Types,
178         Foreign.ForeignPtr,
179         Foreign.ForeignPtr.Safe,
180         Foreign.ForeignPtr.Unsafe,
181         Foreign.Marshal,
182         Foreign.Marshal.Alloc,
183         Foreign.Marshal.Array,
184         Foreign.Marshal.Error,
185         Foreign.Marshal.Pool,
186         Foreign.Marshal.Safe,
187         Foreign.Marshal.Utils,
188         Foreign.Marshal.Unsafe,
189         Foreign.Ptr,
190         Foreign.Safe,
191         Foreign.StablePtr,
192         Foreign.Storable,
193         Numeric,
194         Prelude,
195         System.Console.GetOpt
196         System.CPUTime,
197         System.Environment,
198         System.Exit,
199         System.IO,
200         System.IO.Error,
201         System.IO.Unsafe,
202         System.Info,
203         System.Mem,
204         System.Mem.StableName,
205         System.Mem.Weak,
206         System.Posix.Internals,
207         System.Posix.Types,
208         Text.ParserCombinators.ReadP,
209         Text.ParserCombinators.ReadPrec,
210         Text.Printf,
211         Text.Read,
212         Text.Read.Lex,
213         Text.Show,
214         Text.Show.Functions
215         Unsafe.Coerce
216     other-modules:
217         Control.Monad.ST.Imp
218         Control.Monad.ST.Lazy.Imp
219         Foreign.ForeignPtr.Imp
220         System.Environment.ExecutablePath
221     c-sources:
222         cbits/PrelIOUtils.c
223         cbits/WCsubst.c
224         cbits/Win32Utils.c
225         cbits/DarwinUtils.c
226         cbits/consUtils.c
227         cbits/iconv.c
228         cbits/inputReady.c
229         cbits/primFloat.c
230         cbits/md5.c
231         cbits/sysconf.c
232     include-dirs: include
233     includes:    HsBase.h
234     install-includes:    HsBase.h HsBaseConfig.h EventConfig.h WCsubst.h consUtils.h Typeable.h OldTypeable.h
235     if os(windows) {
236         extra-libraries: wsock32, user32, shell32
237     }
238     if !os(windows) {
239         exposed-modules:
240             GHC.Event
241         other-modules:
242             GHC.Event.Array
243             GHC.Event.Clock
244             GHC.Event.Control
245             GHC.Event.EPoll
246             GHC.Event.IntMap
247             GHC.Event.Internal
248             GHC.Event.KQueue
249             GHC.Event.Manager
250             GHC.Event.TimerManager
251             GHC.Event.PSQ
252             GHC.Event.Poll
253             GHC.Event.Thread
254             GHC.Event.Unique
255     }
256     -- We need to set the package name to base (without a version number)
257     -- as it's magic.
258     ghc-options: -package-name base
259     nhc98-options: -H4M -K3M
260     extensions: CPP
261 }