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