Data.Array* and Data.PackedString have now moved to their own packages
[ghc-base.git] / 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.Bits,
88         Data.Bool,
89         Data.Char,
90         Data.Complex,
91         Data.Dynamic,
92         Data.Either,
93         Data.Eq,
94         Data.Fixed,
95         Data.Function,
96         Data.HashTable,
97         Data.IORef,
98         Data.Int,
99         Data.Ix,
100         Data.List,
101         Data.Maybe,
102         Data.Monoid,
103         Data.Ord,
104         Data.Ratio,
105         Data.STRef,
106         Data.STRef.Lazy,
107         Data.STRef.Strict,
108         Data.String,
109         Data.Tuple,
110         Data.Typeable,
111         Data.Unique,
112         Data.Version,
113         Data.Word,
114         Debug.Trace,
115         Foreign,
116         Foreign.C,
117         Foreign.C.Error,
118         Foreign.C.String,
119         Foreign.C.Types,
120         Foreign.ForeignPtr,
121         Foreign.Marshal,
122         Foreign.Marshal.Alloc,
123         Foreign.Marshal.Array,
124         Foreign.Marshal.Error,
125         Foreign.Marshal.Pool,
126         Foreign.Marshal.Utils,
127         Foreign.Ptr,
128         Foreign.StablePtr,
129         Foreign.Storable,
130         Numeric,
131         Prelude,
132         System.Console.GetOpt,
133         System.CPUTime,
134         System.Environment,
135         System.Exit,
136         System.IO,
137         System.IO.Error,
138         System.IO.Unsafe,
139         System.Info,
140         System.Mem,
141         System.Mem.StableName,
142         System.Mem.Weak,
143         System.Posix.Internals,
144         System.Posix.Types,
145         Text.ParserCombinators.ReadP,
146         Text.ParserCombinators.ReadPrec,
147         Text.Printf,
148         Text.Read,
149         Text.Read.Lex,
150         Text.Show,
151         Text.Show.Functions
152         Unsafe.Coerce
153     c-sources:
154         cbits/PrelIOUtils.c
155         cbits/WCsubst.c
156         cbits/Win32Utils.c
157         cbits/consUtils.c
158         cbits/dirUtils.c
159         cbits/inputReady.c
160         cbits/lockFile.c
161         cbits/longlong.c
162         cbits/selectUtils.c
163     include-dirs: include
164     includes:    HsBase.h
165     install-includes:    HsBase.h HsBaseConfig.h WCsubst.h dirUtils.h lockFile.h consUtils.h Typeable.h
166     extensions:    CPP
167     -- XXX is there an extension for using # in varids?
168     -- We need to set the package name to base (without a version number)
169     -- as it's magic.
170     ghc-options: -fglasgow-exts -package-name base
171     nhc98-options: -H4M -K3M
172 }
173