put extra-tmp-files field in the right place
[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 extra-tmp-files:
12                 config.log config.status autom4te.cache
13                 include/HsBaseConfig.h GHC/Prim.hs GHC/PrimopWrappers.hs
14
15 Library {
16     -- This is actually something of a hack, as if we are using
17     -- GHC and we don't have an rts package for some reason, we
18     -- actually ought to fail.
19     if impl(ghc) {
20         build-depends: rts
21         exposed-modules:
22             Data.Generics,
23             Data.Generics.Aliases,
24             Data.Generics.Basics,
25             Data.Generics.Instances,
26             Data.Generics.Schemes,
27             Data.Generics.Text,
28             Data.Generics.Twins,
29             Foreign.Concurrent,
30             GHC.Arr,
31             GHC.Base,
32             GHC.Conc,
33             GHC.ConsoleHandler,
34             GHC.Dotnet,
35             GHC.Enum,
36             GHC.Environment,
37             GHC.Err,
38             GHC.Exception,
39             GHC.Exts,
40             GHC.Float,
41             GHC.ForeignPtr,
42             GHC.Handle,
43             GHC.IO,
44             GHC.IOBase,
45             GHC.Int,
46             GHC.List,
47             GHC.Num,
48             GHC.PArr,
49             GHC.Pack,
50             GHC.Prim,
51             GHC.PrimopWrappers,
52             GHC.Ptr,
53             GHC.Read,
54             GHC.Real,
55             GHC.ST,
56             GHC.STRef,
57             GHC.Show,
58             GHC.Stable,
59             GHC.Storable,
60             GHC.TopHandler,
61             GHC.Unicode,
62             GHC.Weak,
63             GHC.Word,
64             System.Timeout
65     }
66     exposed-modules:
67         Control.Applicative,
68         Control.Arrow,
69         Control.Concurrent,
70         Control.Concurrent.Chan,
71         Control.Concurrent.MVar,
72         Control.Concurrent.QSem,
73         Control.Concurrent.QSemN,
74         Control.Concurrent.SampleVar,
75         Control.Exception,
76         Control.Monad,
77         Control.Monad.Fix,
78         Control.Monad.Instances,
79         Control.Monad.ST,
80         Control.Monad.ST.Lazy,
81         Control.Monad.ST.Strict,
82         Data.Bits,
83         Data.Bool,
84         Data.Char,
85         Data.Complex,
86         Data.Dynamic,
87         Data.Either,
88         Data.Eq,
89         Data.Fixed,
90         Data.Foldable
91         Data.Function,
92         Data.HashTable,
93         Data.IORef,
94         Data.Int,
95         Data.Ix,
96         Data.List,
97         Data.Maybe,
98         Data.Monoid,
99         Data.Ord,
100         Data.Ratio,
101         Data.STRef,
102         Data.STRef.Lazy,
103         Data.STRef.Strict,
104         Data.String,
105         Data.Traversable
106         Data.Tuple,
107         Data.Typeable,
108         Data.Unique,
109         Data.Version,
110         Data.Word,
111         Debug.Trace,
112         Foreign,
113         Foreign.C,
114         Foreign.C.Error,
115         Foreign.C.String,
116         Foreign.C.Types,
117         Foreign.ForeignPtr,
118         Foreign.Marshal,
119         Foreign.Marshal.Alloc,
120         Foreign.Marshal.Array,
121         Foreign.Marshal.Error,
122         Foreign.Marshal.Pool,
123         Foreign.Marshal.Utils,
124         Foreign.Ptr,
125         Foreign.StablePtr,
126         Foreign.Storable,
127         Numeric,
128         Prelude,
129         System.Console.GetOpt,
130         System.CPUTime,
131         System.Environment,
132         System.Exit,
133         System.IO,
134         System.IO.Error,
135         System.IO.Unsafe,
136         System.Info,
137         System.Mem,
138         System.Mem.StableName,
139         System.Mem.Weak,
140         System.Posix.Internals,
141         System.Posix.Types,
142         Text.ParserCombinators.ReadP,
143         Text.ParserCombinators.ReadPrec,
144         Text.Printf,
145         Text.Read,
146         Text.Read.Lex,
147         Text.Show,
148         Text.Show.Functions
149         Unsafe.Coerce
150     c-sources:
151         cbits/PrelIOUtils.c
152         cbits/WCsubst.c
153         cbits/Win32Utils.c
154         cbits/consUtils.c
155         cbits/dirUtils.c
156         cbits/inputReady.c
157         cbits/lockFile.c
158         cbits/longlong.c
159         cbits/selectUtils.c
160     include-dirs: include
161     includes:    HsBase.h
162     install-includes:    HsBase.h HsBaseConfig.h WCsubst.h dirUtils.h lockFile.h consUtils.h Typeable.h
163     if os(mingw32) {
164         extra-libraries: wsock32, msvcrt, kernel32, user32, shell32
165     }
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