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