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