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