Make two type defaults explicit
[packages/base.git] / base.cabal
1 name:           base
2 version:        4.1.0.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
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:     darcs
24     location: http://darcs.haskell.org/packages/base/
25
26 Library {
27     if impl(ghc) {
28         build-depends: rts, ghc-prim, integer
29         exposed-modules:
30             Foreign.Concurrent,
31             GHC.Arr,
32             GHC.Base,
33             GHC.Classes,
34             GHC.Conc,
35             GHC.ConsoleHandler,
36             GHC.Desugar,
37             GHC.Enum,
38             GHC.Environment,
39             GHC.Err,
40             GHC.Exception,
41             GHC.Exts,
42             GHC.Float,
43             GHC.ForeignPtr,
44             GHC.Handle,
45             GHC.IO,
46             GHC.IOBase,
47             GHC.Int,
48             GHC.List,
49             GHC.Num,
50             GHC.PArr,
51             GHC.Pack,
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         extensions: MagicHash, ExistentialQuantification, Rank2Types,
66                     ScopedTypeVariables, UnboxedTuples,
67                     ForeignFunctionInterface, UnliftedFFITypes,
68                     DeriveDataTypeable, GeneralizedNewtypeDeriving,
69                     FlexibleInstances, StandaloneDeriving,
70                     PatternGuards, EmptyDataDecls, NoImplicitPrelude
71
72         if impl(ghc < 6.10) 
73            -- PatternSignatures was deprecated in 6.10
74            extensions: PatternSignatures
75     }
76     exposed-modules:
77         Control.Applicative,
78         Control.Arrow,
79         Control.Category,
80         Control.Concurrent,
81         Control.Concurrent.Chan,
82         Control.Concurrent.MVar,
83         Control.Concurrent.QSem,
84         Control.Concurrent.QSemN,
85         Control.Concurrent.SampleVar,
86         Control.Exception,
87         Control.Exception.Base
88         Control.OldException,
89         Control.Monad,
90         Control.Monad.Fix,
91         Control.Monad.Instances,
92         Control.Monad.ST
93         Control.Monad.ST.Lazy
94         Control.Monad.ST.Strict
95         Data.Bits,
96         Data.Bool,
97         Data.Char,
98         Data.Complex,
99         Data.Dynamic,
100         Data.Either,
101         Data.Eq,
102         Data.Data,
103         Data.Fixed,
104         Data.Foldable
105         Data.Function,
106         Data.HashTable,
107         Data.IORef,
108         Data.Int,
109         Data.Ix,
110         Data.List,
111         Data.Maybe,
112         Data.Monoid,
113         Data.Ord,
114         Data.Ratio,
115         Data.STRef
116         Data.STRef.Lazy
117         Data.STRef.Strict
118         Data.String,
119         Data.Traversable
120         Data.Tuple,
121         Data.Typeable,
122         Data.Unique,
123         Data.Version,
124         Data.Word,
125         Debug.Trace,
126         Foreign,
127         Foreign.C,
128         Foreign.C.Error,
129         Foreign.C.String,
130         Foreign.C.Types,
131         Foreign.ForeignPtr,
132         Foreign.Marshal,
133         Foreign.Marshal.Alloc,
134         Foreign.Marshal.Array,
135         Foreign.Marshal.Error,
136         Foreign.Marshal.Pool,
137         Foreign.Marshal.Utils,
138         Foreign.Ptr,
139         Foreign.StablePtr,
140         Foreign.Storable,
141         Numeric,
142         Prelude,
143         System.Console.GetOpt
144         System.CPUTime,
145         System.Environment,
146         System.Exit,
147         System.IO,
148         System.IO.Error,
149         System.IO.Unsafe,
150         System.Info,
151         System.Mem,
152         System.Mem.StableName,
153         System.Mem.Weak,
154         System.Posix.Internals,
155         System.Posix.Types,
156         Text.ParserCombinators.ReadP,
157         Text.ParserCombinators.ReadPrec,
158         Text.Printf,
159         Text.Read,
160         Text.Read.Lex,
161         Text.Show,
162         Text.Show.Functions
163         Unsafe.Coerce
164     c-sources:
165         cbits/PrelIOUtils.c
166         cbits/WCsubst.c
167         cbits/Win32Utils.c
168         cbits/consUtils.c
169         cbits/dirUtils.c
170         cbits/inputReady.c
171         cbits/selectUtils.c
172     include-dirs: include
173     includes:    HsBase.h
174     install-includes:    HsBase.h HsBaseConfig.h WCsubst.h dirUtils.h consUtils.h Typeable.h
175     if os(windows) {
176         extra-libraries: wsock32, user32, shell32
177     }
178     extensions: CPP
179     -- We need to set the package name to base (without a version number)
180     -- as it's magic.
181     ghc-options: -package-name base
182     nhc98-options: -H4M -K3M
183 }