Use CAPI for lseek
[packages/base.git] / base.cabal
1 name:           base
2 version:        4.5.0.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 include/md5.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.Conc,
42             GHC.Conc.IO,
43             GHC.Conc.Signal,
44             GHC.Conc.Sync,
45             GHC.ConsoleHandler,
46             GHC.Constants,
47             GHC.Desugar,
48             GHC.Enum,
49             GHC.Environment,
50             GHC.Err,
51             GHC.Exception,
52             GHC.Exts,
53             GHC.Fingerprint,
54             GHC.Fingerprint.Type,
55             GHC.Float,
56             GHC.Float.ConversionUtils,
57             GHC.Float.RealFracMethods,
58             GHC.Foreign,
59             GHC.ForeignPtr,
60             GHC.Handle,
61             GHC.IO,
62             GHC.IO.Buffer,
63             GHC.IO.BufferedIO,
64             GHC.IO.Device,
65             GHC.IO.Encoding,
66             GHC.IO.Encoding.CodePage,
67             GHC.IO.Encoding.Failure,
68             GHC.IO.Encoding.Iconv,
69             GHC.IO.Encoding.Latin1,
70             GHC.IO.Encoding.Types,
71             GHC.IO.Encoding.UTF16,
72             GHC.IO.Encoding.UTF32,
73             GHC.IO.Encoding.UTF8,
74             GHC.IO.Exception,
75             GHC.IO.FD,
76             GHC.IO.Handle,
77             GHC.IO.Handle.FD,
78             GHC.IO.Handle.Internals,
79             GHC.IO.Handle.Text,
80             GHC.IO.Handle.Types,
81             GHC.IO.IOMode,
82             GHC.IOArray,
83             GHC.IOBase,
84             GHC.IORef,
85             GHC.Int,
86             GHC.List,
87             GHC.MVar,
88             GHC.Num,
89             GHC.PArr,
90             GHC.Pack,
91             GHC.Ptr,
92             GHC.Read,
93             GHC.Real,
94             GHC.ST,
95             GHC.Stack,
96             GHC.Stats,
97             GHC.Show,
98             GHC.Stable,
99             GHC.Storable,
100             GHC.STRef,
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.Monad,
124         Control.Monad.Fix,
125         Control.Monad.Instances,
126         Control.Monad.ST,
127         Control.Monad.ST.Safe,
128         Control.Monad.ST.Unsafe,
129         Control.Monad.ST.Lazy,
130         Control.Monad.ST.Lazy.Safe,
131         Control.Monad.ST.Lazy.Unsafe,
132         Control.Monad.ST.Strict,
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.Typeable.Internal,
163         Data.Unique,
164         Data.Version,
165         Data.Word,
166         Debug.Trace,
167         Foreign,
168         Foreign.C,
169         Foreign.C.Error,
170         Foreign.C.String,
171         Foreign.C.Types,
172         Foreign.ForeignPtr,
173         Foreign.ForeignPtr.Safe,
174         Foreign.ForeignPtr.Unsafe,
175         Foreign.Marshal,
176         Foreign.Marshal.Alloc,
177         Foreign.Marshal.Array,
178         Foreign.Marshal.Error,
179         Foreign.Marshal.Pool,
180         Foreign.Marshal.Safe,
181         Foreign.Marshal.Utils,
182         Foreign.Marshal.Unsafe,
183         Foreign.Ptr,
184         Foreign.Safe,
185         Foreign.StablePtr,
186         Foreign.Storable,
187         Numeric,
188         Prelude,
189         System.Console.GetOpt
190         System.CPUTime,
191         System.Environment,
192         System.Exit,
193         System.IO,
194         System.IO.Error,
195         System.IO.Unsafe,
196         System.Info,
197         System.Mem,
198         System.Mem.StableName,
199         System.Mem.Weak,
200         System.Posix.Internals,
201         System.Posix.Types,
202         Text.ParserCombinators.ReadP,
203         Text.ParserCombinators.ReadPrec,
204         Text.Printf,
205         Text.Read,
206         Text.Read.Lex,
207         Text.Show,
208         Text.Show.Functions
209         Unsafe.Coerce
210     other-modules:
211         Control.Monad.ST.Imp
212         Control.Monad.ST.Lazy.Imp
213         Foreign.ForeignPtr.Imp
214     c-sources:
215         cbits/PrelIOUtils.c
216         cbits/WCsubst.c
217         cbits/Win32Utils.c
218         cbits/consUtils.c
219         cbits/iconv.c
220         cbits/inputReady.c
221         cbits/primFloat.c
222         cbits/md5.c
223     include-dirs: include
224     includes:    HsBase.h
225     install-includes:    HsBase.h HsBaseConfig.h EventConfig.h WCsubst.h consUtils.h Typeable.h
226     if os(windows) {
227         extra-libraries: wsock32, user32, shell32
228     }
229     if !os(windows) {
230         exposed-modules:
231             GHC.Event
232         other-modules:
233             GHC.Event.Array
234             GHC.Event.Clock
235             GHC.Event.Control
236             GHC.Event.EPoll
237             GHC.Event.IntMap
238             GHC.Event.Internal
239             GHC.Event.KQueue
240             GHC.Event.Manager
241             GHC.Event.PSQ
242             GHC.Event.Poll
243             GHC.Event.Thread
244             GHC.Event.Unique
245     }
246     -- We need to set the package name to base (without a version number)
247     -- as it's magic.
248     ghc-options: -package-name base
249     nhc98-options: -H4M -K3M
250     extensions: CPP
251 }