Rewrite of the IO library, including Unicode support
[ghc-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.MVar,
45             GHC.IO,
46             GHC.IO.IOMode,
47             GHC.IO.Buffer,
48             GHC.IO.Device,
49             GHC.IO.BufferedIO,
50             GHC.IO.FD,
51             GHC.IO.Exception,
52             GHC.IO.Encoding,
53             GHC.IO.Encoding.Latin1,
54             GHC.IO.Encoding.UTF8,
55             GHC.IO.Encoding.UTF16,
56             GHC.IO.Encoding.UTF32,
57             GHC.IO.Encoding.Types,
58             GHC.IO.Encoding.Iconv,
59             GHC.IO.Handle,
60             GHC.IO.Handle.Types,
61             GHC.IO.Handle.Internals,
62             GHC.IO.Handle.FD,
63             GHC.IO.Handle.Text,
64             GHC.IOBase,
65             GHC.Handle,
66             GHC.IORef,
67             GHC.IOArray,
68             GHC.Int,
69             GHC.List,
70             GHC.Num,
71             GHC.PArr,
72             GHC.Pack,
73             GHC.Ptr,
74             GHC.Read,
75             GHC.Real,
76             GHC.ST,
77             GHC.STRef,
78             GHC.Show,
79             GHC.Stable,
80             GHC.Storable,
81             GHC.TopHandler,
82             GHC.Unicode,
83             GHC.Weak,
84             GHC.Word,
85             System.Timeout
86         extensions: MagicHash, ExistentialQuantification, Rank2Types,
87                     ScopedTypeVariables, UnboxedTuples,
88                     ForeignFunctionInterface, UnliftedFFITypes,
89                     DeriveDataTypeable, GeneralizedNewtypeDeriving,
90                     FlexibleInstances, StandaloneDeriving,
91                     PatternGuards, EmptyDataDecls, NoImplicitPrelude
92
93         if impl(ghc < 6.10) 
94            -- PatternSignatures was deprecated in 6.10
95            extensions: PatternSignatures
96     }
97     exposed-modules:
98         Control.Applicative,
99         Control.Arrow,
100         Control.Category,
101         Control.Concurrent,
102         Control.Concurrent.Chan,
103         Control.Concurrent.MVar,
104         Control.Concurrent.QSem,
105         Control.Concurrent.QSemN,
106         Control.Concurrent.SampleVar,
107         Control.Exception,
108         Control.Exception.Base
109         Control.OldException,
110         Control.Monad,
111         Control.Monad.Fix,
112         Control.Monad.Instances,
113         Control.Monad.ST
114         Control.Monad.ST.Lazy
115         Control.Monad.ST.Strict
116         Data.Bits,
117         Data.Bool,
118         Data.Char,
119         Data.Complex,
120         Data.Dynamic,
121         Data.Either,
122         Data.Eq,
123         Data.Data,
124         Data.Fixed,
125         Data.Foldable
126         Data.Function,
127         Data.HashTable,
128         Data.IORef,
129         Data.Int,
130         Data.Ix,
131         Data.List,
132         Data.Maybe,
133         Data.Monoid,
134         Data.Ord,
135         Data.Ratio,
136         Data.STRef
137         Data.STRef.Lazy
138         Data.STRef.Strict
139         Data.String,
140         Data.Traversable
141         Data.Tuple,
142         Data.Typeable,
143         Data.Unique,
144         Data.Version,
145         Data.Word,
146         Debug.Trace,
147         Foreign,
148         Foreign.C,
149         Foreign.C.Error,
150         Foreign.C.String,
151         Foreign.C.Types,
152         Foreign.ForeignPtr,
153         Foreign.Marshal,
154         Foreign.Marshal.Alloc,
155         Foreign.Marshal.Array,
156         Foreign.Marshal.Error,
157         Foreign.Marshal.Pool,
158         Foreign.Marshal.Utils,
159         Foreign.Ptr,
160         Foreign.StablePtr,
161         Foreign.Storable,
162         Numeric,
163         Prelude,
164         System.Console.GetOpt
165         System.CPUTime,
166         System.Environment,
167         System.Exit,
168         System.IO,
169         System.IO.Error,
170         System.IO.Unsafe,
171         System.Info,
172         System.Mem,
173         System.Mem.StableName,
174         System.Mem.Weak,
175         System.Posix.Internals,
176         System.Posix.Types,
177         Text.ParserCombinators.ReadP,
178         Text.ParserCombinators.ReadPrec,
179         Text.Printf,
180         Text.Read,
181         Text.Read.Lex,
182         Text.Show,
183         Text.Show.Functions
184         Unsafe.Coerce
185     c-sources:
186         cbits/PrelIOUtils.c
187         cbits/WCsubst.c
188         cbits/Win32Utils.c
189         cbits/consUtils.c
190         cbits/dirUtils.c
191         cbits/inputReady.c
192         cbits/selectUtils.c
193     include-dirs: include
194     includes:    HsBase.h
195     install-includes:    HsBase.h HsBaseConfig.h WCsubst.h dirUtils.h consUtils.h Typeable.h
196     if os(windows) {
197         extra-libraries: wsock32, user32, shell32
198     }
199     extensions: CPP
200     -- We need to set the package name to base (without a version number)
201     -- as it's magic.
202     ghc-options: -package-name base
203     nhc98-options: -H4M -K3M
204 }