monad comprehensions: Group and Zip monad
[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         Control.Monad.Group
125         Control.Monad.Zip
126         Data.Bits,
127         Data.Bool,
128         Data.Char,
129         Data.Complex,
130         Data.Dynamic,
131         Data.Either,
132         Data.Eq,
133         Data.Data,
134         Data.Fixed,
135         Data.Foldable
136         Data.Function,
137         Data.Functor,
138         Data.HashTable,
139         Data.IORef,
140         Data.Int,
141         Data.Ix,
142         Data.List,
143         Data.Maybe,
144         Data.Monoid,
145         Data.Ord,
146         Data.Ratio,
147         Data.STRef
148         Data.STRef.Lazy
149         Data.STRef.Strict
150         Data.String,
151         Data.Traversable
152         Data.Tuple,
153         Data.Typeable,
154         Data.Unique,
155         Data.Version,
156         Data.Word,
157         Debug.Trace,
158         Foreign,
159         Foreign.C,
160         Foreign.C.Error,
161         Foreign.C.String,
162         Foreign.C.Types,
163         Foreign.ForeignPtr,
164         Foreign.Marshal,
165         Foreign.Marshal.Alloc,
166         Foreign.Marshal.Array,
167         Foreign.Marshal.Error,
168         Foreign.Marshal.Pool,
169         Foreign.Marshal.Utils,
170         Foreign.Ptr,
171         Foreign.StablePtr,
172         Foreign.Storable,
173         Numeric,
174         Prelude,
175         System.Console.GetOpt
176         System.CPUTime,
177         System.Environment,
178         System.Exit,
179         System.IO,
180         System.IO.Error,
181         System.IO.Unsafe,
182         System.Info,
183         System.Mem,
184         System.Mem.StableName,
185         System.Mem.Weak,
186         System.Posix.Internals,
187         System.Posix.Types,
188         Text.ParserCombinators.ReadP,
189         Text.ParserCombinators.ReadPrec,
190         Text.Printf,
191         Text.Read,
192         Text.Read.Lex,
193         Text.Show,
194         Text.Show.Functions
195         Unsafe.Coerce
196     c-sources:
197         cbits/PrelIOUtils.c
198         cbits/WCsubst.c
199         cbits/Win32Utils.c
200         cbits/consUtils.c
201         cbits/iconv.c
202         cbits/inputReady.c
203         cbits/selectUtils.c
204         cbits/primFloat.c
205     include-dirs: include
206     includes:    HsBase.h
207     install-includes:    HsBase.h HsBaseConfig.h EventConfig.h WCsubst.h consUtils.h Typeable.h
208     if os(windows) {
209         extra-libraries: wsock32, user32, shell32
210     }
211     if !os(windows) {
212         exposed-modules:
213             GHC.Event
214         other-modules:
215             GHC.Event.Array
216             GHC.Event.Clock
217             GHC.Event.Control
218             GHC.Event.EPoll
219             GHC.Event.IntMap
220             GHC.Event.Internal
221             GHC.Event.KQueue
222             GHC.Event.Manager
223             GHC.Event.PSQ
224             GHC.Event.Poll
225             GHC.Event.Thread
226             GHC.Event.Unique
227     }
228     -- We need to set the package name to base (without a version number)
229     -- as it's magic.
230     ghc-options: -package-name base
231     nhc98-options: -H4M -K3M
232 }