add setNumCapabilities :: Int -> IO ()
[packages/base.git] / base.cabal
1 name:           base
2 version:        4.4.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 include/EventConfig.h
17 extra-source-files:
18                 config.guess config.sub install-sh
19                 aclocal.m4 configure.ac configure
20                 include/CTypes.h include/md5.h
21
22 source-repository head
23     type:     git
24     location: http://darcs.haskell.org/packages/base.git/
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.Conc,
42             GHC.Conc.IO,
43             GHC.Conc.Signal,
44             GHC.Conc.Sync,
45             GHC.ConsoleHandler,
46             GHC.Constants,
47             GHC.Desugar,
48             GHC.Enum,
49             GHC.Environment,
50             GHC.Err,
51             GHC.Exception,
52             GHC.Exts,
53             GHC.Fingerprint,
54             GHC.Fingerprint.Type,
55             GHC.Float,
56             GHC.Float.ConversionUtils,
57             GHC.Float.RealFracMethods,
58             GHC.Foreign,
59             GHC.ForeignPtr,
60             GHC.Handle,
61             GHC.IO,
62             GHC.IO.Buffer,
63             GHC.IO.BufferedIO,
64             GHC.IO.Device,
65             GHC.IO.Encoding,
66             GHC.IO.Encoding.CodePage,
67             GHC.IO.Encoding.Failure,
68             GHC.IO.Encoding.Iconv,
69             GHC.IO.Encoding.Latin1,
70             GHC.IO.Encoding.Types,
71             GHC.IO.Encoding.UTF16,
72             GHC.IO.Encoding.UTF32,
73             GHC.IO.Encoding.UTF8,
74             GHC.IO.Exception,
75             GHC.IO.FD,
76             GHC.IO.Handle,
77             GHC.IO.Handle.FD,
78             GHC.IO.Handle.Internals,
79             GHC.IO.Handle.Text,
80             GHC.IO.Handle.Types,
81             GHC.IO.IOMode,
82             GHC.IOArray,
83             GHC.IOBase,
84             GHC.IORef,
85             GHC.Int,
86             GHC.List,
87             GHC.MVar,
88             GHC.Num,
89             GHC.PArr,
90             GHC.Pack,
91             GHC.Ptr,
92             GHC.Read,
93             GHC.Real,
94             GHC.ST,
95             GHC.Stack,
96             GHC.Stats,
97             GHC.Show,
98             GHC.Stable,
99             GHC.Storable,
100             GHC.STRef,
101             GHC.TopHandler,
102             GHC.Unicode,
103             GHC.Weak,
104             GHC.Word,
105             System.Timeout
106         if os(windows)
107             exposed-modules: GHC.IO.Encoding.CodePage.Table
108                              GHC.Conc.Windows
109                              GHC.Windows
110     }
111     exposed-modules:
112         Control.Applicative,
113         Control.Arrow,
114         Control.Category,
115         Control.Concurrent,
116         Control.Concurrent.Chan,
117         Control.Concurrent.MVar,
118         Control.Concurrent.QSem,
119         Control.Concurrent.QSemN,
120         Control.Concurrent.SampleVar,
121         Control.Exception,
122         Control.Exception.Base
123         Control.OldException,
124         Control.Monad,
125         Control.Monad.Fix,
126         Control.Monad.Instances,
127         Control.Monad.ST,
128         Control.Monad.ST.Safe,
129         Control.Monad.ST.Unsafe,
130         Control.Monad.ST.Lazy,
131         Control.Monad.ST.Lazy.Safe,
132         Control.Monad.ST.Lazy.Unsafe,
133         Control.Monad.ST.Strict,
134         Control.Monad.Group
135         Control.Monad.Zip
136         Data.Bits,
137         Data.Bool,
138         Data.Char,
139         Data.Complex,
140         Data.Dynamic,
141         Data.Either,
142         Data.Eq,
143         Data.Data,
144         Data.Fixed,
145         Data.Foldable
146         Data.Function,
147         Data.Functor,
148         Data.HashTable,
149         Data.IORef,
150         Data.Int,
151         Data.Ix,
152         Data.List,
153         Data.Maybe,
154         Data.Monoid,
155         Data.Ord,
156         Data.Ratio,
157         Data.STRef
158         Data.STRef.Lazy
159         Data.STRef.Strict
160         Data.String,
161         Data.Traversable
162         Data.Tuple,
163         Data.Typeable,
164         Data.Typeable.Internal,
165         Data.Unique,
166         Data.Version,
167         Data.Word,
168         Debug.Trace,
169         Foreign,
170         Foreign.C,
171         Foreign.C.Error,
172         Foreign.C.String,
173         Foreign.C.Types,
174         Foreign.ForeignPtr,
175         Foreign.ForeignPtr.Safe,
176         Foreign.ForeignPtr.Unsafe,
177         Foreign.Marshal,
178         Foreign.Marshal.Alloc,
179         Foreign.Marshal.Array,
180         Foreign.Marshal.Error,
181         Foreign.Marshal.Pool,
182         Foreign.Marshal.Safe,
183         Foreign.Marshal.Utils,
184         Foreign.Marshal.Unsafe,
185         Foreign.Ptr,
186         Foreign.Safe,
187         Foreign.StablePtr,
188         Foreign.Storable,
189         Numeric,
190         Prelude,
191         System.Console.GetOpt
192         System.CPUTime,
193         System.Environment,
194         System.Exit,
195         System.IO,
196         System.IO.Error,
197         System.IO.Unsafe,
198         System.Info,
199         System.Mem,
200         System.Mem.StableName,
201         System.Mem.Weak,
202         System.Posix.Internals,
203         System.Posix.Types,
204         Text.ParserCombinators.ReadP,
205         Text.ParserCombinators.ReadPrec,
206         Text.Printf,
207         Text.Read,
208         Text.Read.Lex,
209         Text.Show,
210         Text.Show.Functions
211         Unsafe.Coerce
212     other-modules:
213         Control.Monad.ST.Imp
214         Control.Monad.ST.Lazy.Imp
215         Foreign.ForeignPtr.Imp
216     c-sources:
217         cbits/PrelIOUtils.c
218         cbits/WCsubst.c
219         cbits/Win32Utils.c
220         cbits/consUtils.c
221         cbits/iconv.c
222         cbits/inputReady.c
223         cbits/selectUtils.c
224         cbits/primFloat.c
225         cbits/md5.c
226     include-dirs: include
227     includes:    HsBase.h
228     install-includes:    HsBase.h HsBaseConfig.h EventConfig.h WCsubst.h consUtils.h Typeable.h
229     if os(windows) {
230         extra-libraries: wsock32, user32, shell32
231     }
232     if !os(windows) {
233         exposed-modules:
234             GHC.Event
235         other-modules:
236             GHC.Event.Array
237             GHC.Event.Clock
238             GHC.Event.Control
239             GHC.Event.EPoll
240             GHC.Event.IntMap
241             GHC.Event.Internal
242             GHC.Event.KQueue
243             GHC.Event.Manager
244             GHC.Event.PSQ
245             GHC.Event.Poll
246             GHC.Event.Thread
247             GHC.Event.Unique
248     }
249     -- We need to set the package name to base (without a version number)
250     -- as it's magic.
251     ghc-options: -package-name base
252     nhc98-options: -H4M -K3M
253     extensions: CPP
254 }