Bump version number following new policy
[packages/base.git] / base.cabal
1 name:           base
2 version:        4.7.0.0
3 -- GHC 7.6.1 released with 4.6.0.0
4 license:        BSD3
5 license-file:   LICENSE
6 maintainer:     libraries@haskell.org
7 bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/base
8 synopsis:       Basic libraries
9 description:
10     This package contains the Prelude and its support libraries,
11     and a large collection of useful libraries ranging from data
12     structures to parsing combinators and debugging utilities.
13 cabal-version:  >=1.6
14 build-type: Configure
15 extra-tmp-files:
16                 config.log config.status autom4te.cache
17                 include/HsBaseConfig.h include/EventConfig.h
18 extra-source-files:
19                 config.guess config.sub install-sh
20                 aclocal.m4 configure.ac configure
21                 include/CTypes.h include/md5.h
22
23 source-repository head
24     type:     git
25     location: http://darcs.haskell.org/packages/base.git/
26
27 Flag integer-simple
28     Description: Use integer-simple
29
30 Library {
31     if impl(ghc) {
32         if flag(integer-simple)
33             build-depends: integer-simple
34         else
35             build-depends: integer-gmp
36             cpp-options: -DOPTIMISE_INTEGER_GCD_LCM
37         build-depends: rts, ghc-prim
38         exposed-modules:
39             Foreign.Concurrent,
40             GHC.Arr,
41             GHC.Base,
42             GHC.Char,
43             GHC.Conc,
44             GHC.Conc.IO,
45             GHC.Conc.Signal,
46             GHC.Conc.Sync,
47             GHC.ConsoleHandler,
48             GHC.Constants,
49             GHC.Desugar,
50             GHC.Enum,
51             GHC.Environment,
52             GHC.Err,
53             GHC.Exception,
54             GHC.Exts,
55             GHC.Fingerprint,
56             GHC.Fingerprint.Type,
57             GHC.Float,
58             GHC.Float.ConversionUtils,
59             GHC.Float.RealFracMethods,
60             GHC.Foreign,
61             GHC.ForeignPtr,
62             GHC.Generics,
63             GHC.GHCi,
64             GHC.IO,
65             GHC.IO.Buffer,
66             GHC.IO.BufferedIO,
67             GHC.IO.Device,
68             GHC.IO.Encoding,
69             GHC.IO.Encoding.CodePage,
70             GHC.IO.Encoding.Failure,
71             GHC.IO.Encoding.Iconv,
72             GHC.IO.Encoding.Latin1,
73             GHC.IO.Encoding.Types,
74             GHC.IO.Encoding.UTF16,
75             GHC.IO.Encoding.UTF32,
76             GHC.IO.Encoding.UTF8,
77             GHC.IO.Exception,
78             GHC.IO.FD,
79             GHC.IO.Handle,
80             GHC.IO.Handle.FD,
81             GHC.IO.Handle.Internals,
82             GHC.IO.Handle.Text,
83             GHC.IO.Handle.Types,
84             GHC.IO.IOMode,
85             GHC.IOArray,
86             GHC.IORef,
87             GHC.IP,
88             GHC.Int,
89             GHC.List,
90             GHC.MVar,
91             GHC.Num,
92             GHC.PArr,
93             GHC.Pack,
94             GHC.Profiling,
95             GHC.Ptr,
96             GHC.Read,
97             GHC.Real,
98             GHC.ST,
99             GHC.Stack,
100             GHC.Stats,
101             GHC.Show,
102             GHC.Stable,
103             GHC.Storable,
104             GHC.STRef,
105             GHC.TypeLits,
106             GHC.TopHandler,
107             GHC.Unicode,
108             GHC.Weak,
109             GHC.Word,
110             System.Timeout
111         if os(windows)
112             exposed-modules: GHC.IO.Encoding.CodePage.Table
113                              GHC.Conc.Windows
114                              GHC.Windows
115     }
116     exposed-modules:
117         Control.Applicative,
118         Control.Arrow,
119         Control.Category,
120         Control.Concurrent,
121         Control.Concurrent.Chan,
122         Control.Concurrent.MVar,
123         Control.Exception,
124         Control.Exception.Base
125         Control.Monad,
126         Control.Monad.Fix,
127         Control.Monad.Instances,
128         Control.Monad.ST,
129         Control.Monad.ST.Safe,
130         Control.Monad.ST.Unsafe,
131         Control.Monad.ST.Lazy,
132         Control.Monad.ST.Lazy.Safe,
133         Control.Monad.ST.Lazy.Unsafe,
134         Control.Monad.ST.Strict,
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.IORef,
149         Data.Int,
150         Data.Ix,
151         Data.List,
152         Data.Maybe,
153         Data.Monoid,
154         Data.Ord,
155         Data.Ratio,
156         Data.STRef
157         Data.STRef.Lazy
158         Data.STRef.Strict
159         Data.String,
160         Data.Traversable
161         Data.Tuple,
162         Data.Typeable,
163         Data.Typeable.Internal,
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.ForeignPtr.Safe,
175         Foreign.ForeignPtr.Unsafe,
176         Foreign.Marshal,
177         Foreign.Marshal.Alloc,
178         Foreign.Marshal.Array,
179         Foreign.Marshal.Error,
180         Foreign.Marshal.Pool,
181         Foreign.Marshal.Safe,
182         Foreign.Marshal.Utils,
183         Foreign.Marshal.Unsafe,
184         Foreign.Ptr,
185         Foreign.Safe,
186         Foreign.StablePtr,
187         Foreign.Storable,
188         Numeric,
189         Prelude,
190         System.Console.GetOpt
191         System.CPUTime,
192         System.Environment,
193         System.Exit,
194         System.IO,
195         System.IO.Error,
196         System.IO.Unsafe,
197         System.Info,
198         System.Mem,
199         System.Mem.StableName,
200         System.Mem.Weak,
201         System.Posix.Internals,
202         System.Posix.Types,
203         Text.ParserCombinators.ReadP,
204         Text.ParserCombinators.ReadPrec,
205         Text.Printf,
206         Text.Read,
207         Text.Read.Lex,
208         Text.Show,
209         Text.Show.Functions
210         Unsafe.Coerce
211     other-modules:
212         Control.Monad.ST.Imp
213         Control.Monad.ST.Lazy.Imp
214         Foreign.ForeignPtr.Imp
215         System.Environment.ExecutablePath
216     c-sources:
217         cbits/PrelIOUtils.c
218         cbits/WCsubst.c
219         cbits/Win32Utils.c
220         cbits/DarwinUtils.c
221         cbits/consUtils.c
222         cbits/iconv.c
223         cbits/inputReady.c
224         cbits/primFloat.c
225         cbits/md5.c
226     include-dirs: include
227     includes:    HsBase.h
228     install-includes:    HsBase.h HsBaseConfig.h EventConfig.h WCsubst.h consUtils.h Typeable.h
229     if os(windows) {
230         extra-libraries: wsock32, user32, shell32
231     }
232     if !os(windows) {
233         exposed-modules:
234             GHC.Event
235         other-modules:
236             GHC.Event.Array
237             GHC.Event.Clock
238             GHC.Event.Control
239             GHC.Event.EPoll
240             GHC.Event.IntMap
241             GHC.Event.Internal
242             GHC.Event.KQueue
243             GHC.Event.Manager
244             GHC.Event.PSQ
245             GHC.Event.Poll
246             GHC.Event.Thread
247             GHC.Event.Unique
248     }
249     -- We need to set the package name to base (without a version number)
250     -- as it's magic.
251     ghc-options: -package-name base
252     nhc98-options: -H4M -K3M
253     extensions: CPP
254 }