add first draft of GHC.HetMet.Private
[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.GArrowInstances,
63             GHC.HetMet.Private,
64             GHC.HetMet.Arrow,
65             GHC.MVar,
66             GHC.IO,
67             GHC.IO.IOMode,
68             GHC.IO.Buffer,
69             GHC.IO.Device,
70             GHC.IO.BufferedIO,
71             GHC.IO.FD,
72             GHC.IO.Exception,
73             GHC.IO.Encoding,
74             GHC.IO.Encoding.Latin1,
75             GHC.IO.Encoding.UTF8,
76             GHC.IO.Encoding.UTF16,
77             GHC.IO.Encoding.UTF32,
78             GHC.IO.Encoding.Types,
79             GHC.IO.Encoding.Iconv,
80             GHC.IO.Encoding.CodePage,
81             GHC.IO.Encoding.Failure,
82             GHC.IO.Handle,
83             GHC.IO.Handle.Types,
84             GHC.IO.Handle.Internals,
85             GHC.IO.Handle.FD,
86             GHC.IO.Handle.Text,
87             GHC.IOBase,
88             GHC.Handle,
89             GHC.IORef,
90             GHC.IOArray,
91             GHC.Int,
92             GHC.List,
93             GHC.Num,
94             GHC.PArr,
95             GHC.Pack,
96             GHC.Ptr,
97             GHC.Read,
98             GHC.Real,
99             GHC.ST,
100             GHC.STRef,
101             GHC.Show,
102             GHC.Stable,
103             GHC.Storable,
104             GHC.TopHandler,
105             GHC.Unicode,
106             GHC.Weak,
107             GHC.Word,
108             System.Timeout
109         if os(windows)
110             exposed-modules: GHC.IO.Encoding.CodePage.Table
111                              GHC.Conc.Windows
112                              GHC.Windows
113     }
114     exposed-modules:
115         Control.Applicative,
116         Control.Arrow,
117         Control.Category,
118         Control.Concurrent,
119         Control.Concurrent.Chan,
120         Control.Concurrent.MVar,
121         Control.Concurrent.QSem,
122         Control.Concurrent.QSemN,
123         Control.Concurrent.SampleVar,
124         Control.Exception,
125         Control.Exception.Base
126         Control.OldException,
127         Control.Monad,
128         Control.Monad.Fix,
129         Control.Monad.Instances,
130         Control.Monad.ST
131         Control.Monad.ST.Lazy
132         Control.Monad.ST.Strict
133         Control.Monad.Group
134         Control.Monad.Zip
135         Data.Bits,
136         Data.Bool,
137         Data.Char,
138         Data.Complex,
139         Data.Dynamic,
140         Data.Either,
141         Data.Eq,
142         Data.Data,
143         Data.Fixed,
144         Data.Foldable
145         Data.Function,
146         Data.Functor,
147         Data.HashTable,
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.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.Marshal,
174         Foreign.Marshal.Alloc,
175         Foreign.Marshal.Array,
176         Foreign.Marshal.Error,
177         Foreign.Marshal.Pool,
178         Foreign.Marshal.Utils,
179         Foreign.Ptr,
180         Foreign.StablePtr,
181         Foreign.Storable,
182         Numeric,
183         Prelude,
184         System.Console.GetOpt
185         System.CPUTime,
186         System.Environment,
187         System.Exit,
188         System.IO,
189         System.IO.Error,
190         System.IO.Unsafe,
191         System.Info,
192         System.Mem,
193         System.Mem.StableName,
194         System.Mem.Weak,
195         System.Posix.Internals,
196         System.Posix.Types,
197         Text.ParserCombinators.ReadP,
198         Text.ParserCombinators.ReadPrec,
199         Text.Printf,
200         Text.Read,
201         Text.Read.Lex,
202         Text.Show,
203         Text.Show.Functions
204         Unsafe.Coerce
205     c-sources:
206         cbits/PrelIOUtils.c
207         cbits/WCsubst.c
208         cbits/Win32Utils.c
209         cbits/consUtils.c
210         cbits/iconv.c
211         cbits/inputReady.c
212         cbits/selectUtils.c
213         cbits/primFloat.c
214     include-dirs: include
215     includes:    HsBase.h
216     install-includes:    HsBase.h HsBaseConfig.h EventConfig.h WCsubst.h consUtils.h Typeable.h
217     if os(windows) {
218         extra-libraries: wsock32, user32, shell32
219     }
220     if !os(windows) {
221         exposed-modules:
222             GHC.Event
223         other-modules:
224             GHC.Event.Array
225             GHC.Event.Clock
226             GHC.Event.Control
227             GHC.Event.EPoll
228             GHC.Event.IntMap
229             GHC.Event.Internal
230             GHC.Event.KQueue
231             GHC.Event.Manager
232             GHC.Event.PSQ
233             GHC.Event.Poll
234             GHC.Event.Thread
235             GHC.Event.Unique
236     }
237     -- We need to set the package name to base (without a version number)
238     -- as it's magic.
239     ghc-options: -package-name base
240     nhc98-options: -H4M -K3M
241 }