Split syb off into its own package
[ghc-base.git] / base.cabal
1 name:           base
2 version:        4.0
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 cabal-version:  >=1.2
12 build-type: Configure
13 extra-tmp-files:
14                 config.log config.status autom4te.cache
15                 include/HsBaseConfig.h
16 extra-source-files:
17                 config.guess config.sub install-sh
18                 aclocal.m4 configure.ac configure
19
20 Library {
21     if impl(ghc) {
22         build-depends: rts, ghc-prim, integer
23         exposed-modules:
24             Foreign.Concurrent,
25             GHC.Arr,
26             GHC.Base,
27             GHC.Classes,
28             GHC.Conc,
29             GHC.ConsoleHandler,
30             GHC.Desugar,
31             GHC.Enum,
32             GHC.Environment,
33             GHC.Err,
34             GHC.Exception,
35             GHC.Exts,
36             GHC.Float,
37             GHC.ForeignPtr,
38             GHC.Handle,
39             GHC.IO,
40             GHC.IOBase,
41             GHC.Int,
42             GHC.List,
43             GHC.Num,
44             GHC.PArr,
45             GHC.Pack,
46             GHC.Ptr,
47             GHC.Read,
48             GHC.Real,
49             GHC.ST,
50             GHC.STRef,
51             GHC.Show,
52             GHC.Stable,
53             GHC.Storable,
54             GHC.TopHandler,
55             GHC.Unicode,
56             GHC.Weak,
57             GHC.Word
58         extensions: MagicHash, ExistentialQuantification, Rank2Types,
59                     ScopedTypeVariables, UnboxedTuples,
60                     ForeignFunctionInterface, UnliftedFFITypes,
61                     DeriveDataTypeable, GeneralizedNewtypeDeriving,
62                     FlexibleInstances, PatternSignatures, StandaloneDeriving,
63                     PatternGuards, EmptyDataDecls
64     }
65     exposed-modules:
66         Control.Applicative,
67         Control.Arrow,
68         Control.Category,
69         Control.Exception,
70         Control.Exception.Base
71         Control.OldException,
72         Control.Monad,
73         Control.Monad.Fix,
74         Control.Monad.Instances,
75         Data.Bits,
76         Data.Bool,
77         Data.Char,
78         Data.Complex,
79         Data.Dynamic,
80         Data.Either,
81         Data.Eq,
82         Data.Fixed,
83         Data.Foldable
84         Data.Function,
85         Data.HashTable,
86         Data.IORef,
87         Data.Int,
88         Data.Ix,
89         Data.List,
90         Data.Maybe,
91         Data.Monoid,
92         Data.Ord,
93         Data.Ratio,
94         Data.String,
95         Data.Traversable
96         Data.Tuple,
97         Data.Typeable,
98         Data.Version,
99         Data.Word,
100         Debug.Trace,
101         Foreign,
102         Foreign.C,
103         Foreign.C.Error,
104         Foreign.C.String,
105         Foreign.C.Types,
106         Foreign.ForeignPtr,
107         Foreign.Marshal,
108         Foreign.Marshal.Alloc,
109         Foreign.Marshal.Array,
110         Foreign.Marshal.Error,
111         Foreign.Marshal.Pool,
112         Foreign.Marshal.Utils,
113         Foreign.Ptr,
114         Foreign.StablePtr,
115         Foreign.Storable,
116         Numeric,
117         Prelude,
118         System.CPUTime,
119         System.Environment,
120         System.Exit,
121         System.IO,
122         System.IO.Error,
123         System.IO.Unsafe,
124         System.Info,
125         System.Mem,
126         System.Mem.StableName,
127         System.Mem.Weak,
128         System.Posix.Internals,
129         System.Posix.Types,
130         Text.ParserCombinators.ReadP,
131         Text.ParserCombinators.ReadPrec,
132         Text.Printf,
133         Text.Read,
134         Text.Read.Lex,
135         Text.Show,
136         Text.Show.Functions
137         Unsafe.Coerce
138     c-sources:
139         cbits/PrelIOUtils.c
140         cbits/WCsubst.c
141         cbits/Win32Utils.c
142         cbits/consUtils.c
143         cbits/dirUtils.c
144         cbits/inputReady.c
145         cbits/selectUtils.c
146     include-dirs: include
147     includes:    HsBase.h
148     install-includes:    HsBase.h HsBaseConfig.h WCsubst.h dirUtils.h consUtils.h Typeable.h
149     if os(windows) {
150         extra-libraries: wsock32, msvcrt, kernel32, user32, shell32
151     }
152     extensions: CPP
153     -- We need to set the package name to base (without a version number)
154     -- as it's magic.
155     ghc-options: -package-name base
156     nhc98-options: -H4M -K3M
157 }