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