Adjust behaviour of gcd
[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.HetMet.GArrowKappa,
63             GHC.HetMet.GArrowInstances,
64             GHC.HetMet.Private,
65             GHC.HetMet.Arrow,
66             GHC.MVar,
67             GHC.IO,
68             GHC.IO.IOMode,
69             GHC.IO.Buffer,
70             GHC.IO.Device,
71             GHC.IO.BufferedIO,
72             GHC.IO.FD,
73             GHC.IO.Exception,
74             GHC.IO.Encoding,
75             GHC.IO.Encoding.Latin1,
76             GHC.IO.Encoding.UTF8,
77             GHC.IO.Encoding.UTF16,
78             GHC.IO.Encoding.UTF32,
79             GHC.IO.Encoding.Types,
80             GHC.IO.Encoding.Iconv,
81             GHC.IO.Encoding.CodePage,
82             GHC.IO.Encoding.Failure,
83             GHC.IO.Handle,
84             GHC.IO.Handle.Types,
85             GHC.IO.Handle.Internals,
86             GHC.IO.Handle.FD,
87             GHC.IO.Handle.Text,
88             GHC.IOBase,
89             GHC.Handle,
90             GHC.IORef,
91             GHC.IOArray,
92             GHC.Int,
93             GHC.List,
94             GHC.Num,
95             GHC.PArr,
96             GHC.Pack,
97             GHC.Ptr,
98             GHC.Read,
99             GHC.Real,
100             GHC.ST,
101             GHC.STRef,
102             GHC.Show,
103             GHC.Stable,
104             GHC.Storable,
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.OldException,
128         Control.Monad,
129         Control.Monad.Fix,
130         Control.Monad.Instances,
131         Control.Monad.ST
132         Control.Monad.ST.Lazy
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.Unique,
165         Data.Version,
166         Data.Word,
167         Debug.Trace,
168         Foreign,
169         Foreign.C,
170         Foreign.C.Error,
171         Foreign.C.String,
172         Foreign.C.Types,
173         Foreign.ForeignPtr,
174         Foreign.Marshal,
175         Foreign.Marshal.Alloc,
176         Foreign.Marshal.Array,
177         Foreign.Marshal.Error,
178         Foreign.Marshal.Pool,
179         Foreign.Marshal.Utils,
180         Foreign.Ptr,
181         Foreign.StablePtr,
182         Foreign.Storable,
183         Numeric,
184         Prelude,
185         System.Console.GetOpt
186         System.CPUTime,
187         System.Environment,
188         System.Exit,
189         System.IO,
190         System.IO.Error,
191         System.IO.Unsafe,
192         System.Info,
193         System.Mem,
194         System.Mem.StableName,
195         System.Mem.Weak,
196         System.Posix.Internals,
197         System.Posix.Types,
198         Text.ParserCombinators.ReadP,
199         Text.ParserCombinators.ReadPrec,
200         Text.Printf,
201         Text.Read,
202         Text.Read.Lex,
203         Text.Show,
204         Text.Show.Functions
205         Unsafe.Coerce
206     c-sources:
207         cbits/PrelIOUtils.c
208         cbits/WCsubst.c
209         cbits/Win32Utils.c
210         cbits/consUtils.c
211         cbits/iconv.c
212         cbits/inputReady.c
213         cbits/selectUtils.c
214         cbits/primFloat.c
215     include-dirs: include
216     includes:    HsBase.h
217     install-includes:    HsBase.h HsBaseConfig.h EventConfig.h WCsubst.h consUtils.h Typeable.h
218     if os(windows) {
219         extra-libraries: wsock32, user32, shell32
220     }
221     if !os(windows) {
222         exposed-modules:
223             GHC.Event
224         other-modules:
225             GHC.Event.Array
226             GHC.Event.Clock
227             GHC.Event.Control
228             GHC.Event.EPoll
229             GHC.Event.IntMap
230             GHC.Event.Internal
231             GHC.Event.KQueue
232             GHC.Event.Manager
233             GHC.Event.PSQ
234             GHC.Event.Poll
235             GHC.Event.Thread
236             GHC.Event.Unique
237     }
238     -- We need to set the package name to base (without a version number)
239     -- as it's magic.
240     ghc-options: -package-name base
241     nhc98-options: -H4M -K3M
242 }