Remove a number of modules now in a "containers" package
[ghc.git] / libraries / base / base.cabal
1 name:        base
2 version:    2.1
3 license:    BSD3
4 license-file:    LICENSE
5 maintainer:    libraries@haskell.org
6 synopsis:    Basic libraries
7 description:
8     This package contains the Prelude and its support libraries,
9     and a large collection of useful libraries ranging from data
10     structures to parsing combinators and debugging utilities.
11
12 Flag IsGHC {
13     Description: Are we compiling with GHC?
14     Default: True
15 }
16
17 Library {
18     -- This is actually something of a hack, as if we are using
19     -- GHC and we don't have an rts package for some reason, we
20     -- actually ought to fail.
21     if flag(IsGHC) {
22         build-depends: rts
23         if os(mingw32) {
24             extra-libraries: wsock32, msvcrt, kernel32, user32, shell32
25         }
26         exposed-modules:
27             Data.Generics,
28             Data.Generics.Aliases,
29             Data.Generics.Basics,
30             Data.Generics.Instances,
31             Data.Generics.Schemes,
32             Data.Generics.Text,
33             Data.Generics.Twins,
34             Foreign.Concurrent,
35             GHC.Arr,
36             GHC.Base,
37             GHC.Conc,
38             GHC.ConsoleHandler,
39             GHC.Dotnet,
40             GHC.Enum,
41             GHC.Environment,
42             GHC.Err,
43             GHC.Exception,
44             GHC.Exts,
45             GHC.Float,
46             GHC.ForeignPtr,
47             GHC.Handle,
48             GHC.IO,
49             GHC.IOBase,
50             GHC.Int,
51             GHC.List,
52             GHC.Num,
53             GHC.PArr,
54             GHC.Pack,
55             GHC.Prim,
56             GHC.PrimopWrappers,
57             GHC.Ptr,
58             GHC.Read,
59             GHC.Real,
60             GHC.ST,
61             GHC.STRef,
62             GHC.Show,
63             GHC.Stable,
64             GHC.Storable,
65             GHC.TopHandler,
66             GHC.Unicode,
67             GHC.Weak,
68             GHC.Word,
69             System.Timeout
70     }
71     exposed-modules:
72         Control.Applicative,
73         Control.Arrow,
74         Control.Concurrent,
75         Control.Concurrent.Chan,
76         Control.Concurrent.MVar,
77         Control.Concurrent.QSem,
78         Control.Concurrent.QSemN,
79         Control.Concurrent.SampleVar,
80         Control.Exception,
81         Control.Monad,
82         Control.Monad.Fix,
83         Control.Monad.Instances,
84         Control.Monad.ST,
85         Control.Monad.ST.Lazy,
86         Control.Monad.ST.Strict,
87         Data.Array,
88         Data.Array.Base,
89         Data.Array.Diff,
90         Data.Array.IArray,
91         Data.Array.IO,
92         Data.Array.MArray,
93         Data.Array.ST,
94         Data.Array.Storable,
95         Data.Array.Unboxed,
96         Data.Bits,
97         Data.Bool,
98         Data.Char,
99         Data.Complex,
100         Data.Dynamic,
101         Data.Either,
102         Data.Eq,
103         Data.Fixed,
104         Data.Function,
105         Data.HashTable,
106         Data.IORef,
107         Data.Int,
108         Data.Ix,
109         Data.List,
110         Data.Maybe,
111         Data.Monoid,
112         Data.Ord,
113         Data.PackedString,
114         Data.Ratio,
115         Data.STRef,
116         Data.STRef.Lazy,
117         Data.STRef.Strict,
118         Data.String,
119         Data.Tuple,
120         Data.Typeable,
121         Data.Unique,
122         Data.Version,
123         Data.Word,
124         Debug.Trace,
125         Foreign,
126         Foreign.C,
127         Foreign.C.Error,
128         Foreign.C.String,
129         Foreign.C.Types,
130         Foreign.ForeignPtr,
131         Foreign.Marshal,
132         Foreign.Marshal.Alloc,
133         Foreign.Marshal.Array,
134         Foreign.Marshal.Error,
135         Foreign.Marshal.Pool,
136         Foreign.Marshal.Utils,
137         Foreign.Ptr,
138         Foreign.StablePtr,
139         Foreign.Storable,
140         Numeric,
141         Prelude,
142         System.Console.GetOpt,
143         System.CPUTime,
144         System.Environment,
145         System.Exit,
146         System.IO,
147         System.IO.Error,
148         System.IO.Unsafe,
149         System.Info,
150         System.Mem,
151         System.Mem.StableName,
152         System.Mem.Weak,
153         System.Posix.Internals,
154         System.Posix.Types,
155         Text.ParserCombinators.ReadP,
156         Text.ParserCombinators.ReadPrec,
157         Text.Printf,
158         Text.Read,
159         Text.Read.Lex,
160         Text.Show,
161         Text.Show.Functions
162         Unsafe.Coerce
163     other-modules:
164         Data.Array.IO.Internals
165     c-sources:
166         cbits/PrelIOUtils.c
167         cbits/WCsubst.c
168         cbits/Win32Utils.c
169         cbits/consUtils.c
170         cbits/dirUtils.c
171         cbits/inputReady.c
172         cbits/lockFile.c
173         cbits/longlong.c
174         cbits/selectUtils.c
175     include-dirs: include
176     includes:    HsBase.h
177     install-includes:    HsBase.h HsBaseConfig.h WCsubst.h dirUtils.h lockFile.h consUtils.h Typeable.h
178     extensions:    CPP
179     -- XXX is there an extension for using # in varids?
180     -- We need to set the package name to base (without a version number)
181     -- as it's magic.
182     ghc-options: -fglasgow-exts -package-name base
183     nhc98-options: -H4M -K3M
184 }
185