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