Fix Haddock errors.
[ghc-hetmet.git] / compiler / ghc.cabal
1 Name: ghc
2 -- XXX Version number!
3 Version: 6.9
4 Copyright: XXX
5 -- License: XXX
6 License-File: XXX
7 Author: XXX
8 Maintainer: glasgow-haskell-users@haskell.org
9 Homepage: http://www.haskell.org/ghc/
10 Synopsis: XXX
11 Description:
12         XXX
13 Category: XXX
14 Build-Type: Simple
15 Cabal-Version: >= 1.2
16
17 Flag base3
18     Description: Choose the new smaller, split-up base package.
19
20 Flag dynlibs
21     Description: Dynamic library support
22
23 Flag editline
24     Description: Use editline
25
26 Flag ghci
27     Description: Build GHCi support.
28
29 Flag stage1
30     Description: Is this stage 1?
31
32 Flag windows
33     Description: On a Windows machine
34
35 Library
36     if flag(base3)
37         Build-Depends: base       >= 3   && < 4,
38                        directory  >= 1   && < 1.1,
39                        process    >= 1   && < 1.1,
40                        bytestring >= 0.9 && < 0.10,
41                        old-time   >= 1   && < 1.1,
42                        containers >= 0.1 && < 0.2,
43                        array      >= 0.1 && < 0.2
44     else
45         Build-Depends: base < 3
46     Build-Depends: filepath >= 1 && < 1.2
47     Build-Depends: haskell98, Cabal, hpc
48     if flag(windows)
49         Build-Depends: Win32
50     else
51         Build-Depends: unix
52
53     if flag(editline)
54         Build-Depends: editline
55         CPP-Options: -DUSE_EDITLINE
56
57     GHC-Options: -Wall -fno-warn-name-shadowing -fno-warn-orphans
58
59     if flag(ghci)
60         Build-Depends: template-haskell
61         CPP-Options: -DGHCI
62         Include-Dirs: ../libffi/build/include
63
64     -- GHC 6.4.2 needs to be able to find WCsubst.c, which needs to be
65     -- able to find WCsubst.h
66     Include-Dirs: ../libraries/base/cbits, ../libraries/base/include
67
68     Extensions: CPP, MagicHash, UnboxedTuples, PatternGuards,
69                 ForeignFunctionInterface, EmptyDataDecls,
70                 TypeSynonymInstances, MultiParamTypeClasses,
71                 FlexibleInstances, Rank2Types, PatternSignatures
72
73     Include-Dirs: . parser utils
74
75     -- XXX Change these directory names: The stage2 files are what
76     --     we want for all stages >= 1
77     if flag(stage1)
78         Include-Dirs: stage1
79     else
80         Include-Dirs: stage2
81     Install-Includes: HsVersions.h, ghc_boot_platform.h
82
83     c-sources:
84         parser/cutils.c
85         utils/md5.c
86         -- For GHC < 6.5:
87         cbits/unicode.c
88
89     if flag(dynlibs)
90         c-sources:
91             ghci/keepCAFsForGHCi.c
92
93     hs-source-dirs:
94         basicTypes
95         cmm
96         codeGen
97         coreSyn
98         cprAnalysis
99         deSugar
100         ghci
101         hsSyn
102         iface
103         main
104         nativeGen
105         parser
106         prelude
107         profiling
108         rename
109         simplCore
110         simplStg
111         specialise
112         stgSyn
113         stranal
114         typecheck
115         types
116         utils
117         vectorise
118
119     Exposed-Modules:
120         BasicTypes
121         DataCon
122         Demand
123         Id
124         IdInfo
125         Literal
126         MkId
127         Module
128         Name
129         NameEnv
130         NameSet
131         NewDemand
132         OccName
133         RdrName
134         SrcLoc
135         UniqSupply
136         Unique
137         Var
138         VarEnv
139         VarSet
140         BlockId
141         CLabel
142         Cmm
143         CmmBrokenBlock
144         CmmCPS
145         CmmCPSGen
146         CmmCPSZ
147         CmmCallConv
148         CmmCommonBlockElimZ
149         CmmContFlowOpt
150         CmmCvt
151         CmmExpr
152         CmmInfo
153         CmmLex
154         CmmLint
155         CmmLive
156         CmmLiveZ
157         CmmOpt
158         CmmParse
159         CmmProcPoint
160         CmmProcPointZ
161         CmmSpillReload
162         CmmTx
163         CmmUtils
164         CmmZipUtil
165         DFMonad
166         Dataflow
167         MachOp
168         MkZipCfg
169         MkZipCfgCmm
170         OptimizationFuel
171         PprC
172         PprCmm
173         PprCmmZ
174         StackColor
175         StackPlacements
176         ZipCfg
177         ZipCfgCmmRep
178         ZipCfgExtras
179         ZipDataflow
180         Bitmap
181         CgBindery
182         CgCallConv
183         CgCase
184         CgClosure
185         CgCon
186         CgExpr
187         CgForeignCall
188         CgHeapery
189         CgHpc
190         CgInfoTbls
191         CgLetNoEscape
192         CgMonad
193         CgParallel
194         CgPrimOp
195         CgProf
196         CgStackery
197         CgTailCall
198         CgTicky
199         CgUtils
200         ClosureInfo
201         CodeGen
202         SMRep
203         CoreFVs
204         CoreLint
205         CorePrep
206         CoreSubst
207         CoreSyn
208         CoreTidy
209         CoreUnfold
210         CoreUtils
211         ExternalCore
212         MkExternalCore
213         PprCore
214         PprExternalCore
215         CprAnalyse
216         Check
217         Coverage
218         Desugar
219         DsArrows
220         DsBinds
221         DsCCall
222         DsExpr
223         DsForeign
224         DsGRHSs
225         DsListComp
226         DsMonad
227         DsUtils
228         Match
229         MatchCon
230         MatchLit
231         HsBinds
232         HsDecls
233         HsDoc
234         HsExpr
235         HsImpExp
236         HsLit
237         HsPat
238         HsSyn
239         HsTypes
240         HsUtils
241         BinIface
242         BuildTyCl
243         IfaceEnv
244         IfaceSyn
245         IfaceType
246         LoadIface
247         MkIface
248         TcIface
249         BreakArray
250         CmdLineParser
251         CodeOutput
252         Config
253         Constants
254         DriverMkDepend
255         DriverPhases
256         DriverPipeline
257         DynFlags
258         ErrUtils
259         Finder
260         GHC
261         HeaderInfo
262         HscMain
263         HscStats
264         HscTypes
265         InteractiveEval
266         PackageConfig
267         Packages
268         ParsePkgConf
269         PprTyThing
270         StaticFlags
271         SysTools
272         TidyPgm
273         AsmCodeGen
274         MachCodeGen
275         MachInstrs
276         MachRegs
277         NCGMonad
278         PositionIndependentCode
279         PprMach
280         RegAllocColor
281         RegAllocInfo
282         RegAllocLinear
283         RegAllocStats
284         RegArchBase
285         RegArchX86
286         RegCoalesce
287         RegLiveness
288         RegSpill
289         RegSpillClean
290         RegSpillCost
291         Ctype
292         HaddockLex
293         HaddockParse
294         HaddockUtils
295         LexCore
296         Lexer
297         Parser
298         ParserCore
299         ParserCoreUtils
300         RdrHsSyn
301         ForeignCall
302         PrelInfo
303         PrelNames
304         PrelRules
305         PrimOp
306         TysPrim
307         TysWiredIn
308         CostCentre
309         SCCfinal
310         RnBinds
311         RnEnv
312         RnExpr
313         RnHsDoc
314         RnHsSyn
315         RnNames
316         RnPat
317         RnSource
318         RnTypes
319         CSE
320         FloatIn
321         FloatOut
322         LiberateCase
323         OccurAnal
324         SAT
325         SetLevels
326         SimplCore
327         SimplEnv
328         SimplMonad
329         SimplUtils
330         Simplify
331         SRT
332         SimplStg
333         StgStats
334         Rules
335         SpecConstr
336         Specialise
337         CoreToStg
338         StgLint
339         StgSyn
340         DmdAnal
341         SaAbsInt
342         SaLib
343         StrictAnal
344         WorkWrap
345         WwLib
346         FamInst
347         Inst
348         TcArrows
349         TcBinds
350         TcClassDcl
351         TcDefaults
352         TcDeriv
353         TcEnv
354         TcExpr
355         TcForeign
356         TcGenDeriv
357         TcHsSyn
358         TcHsType
359         TcInstDcls
360         TcMType
361         TcMatches
362         TcPat
363         TcRnDriver
364         TcRnMonad
365         TcRnTypes
366         TcRules
367         TcSimplify
368         TcTyClsDecls
369         TcTyDecls
370         TcTyFuns
371         TcType
372         TcUnify
373         Class
374         Coercion
375         FamInstEnv
376         FunDeps
377         Generics
378         InstEnv
379         TyCon
380         Type
381         TypeRep
382         Unify
383         Bag
384         Binary
385         BufWrite
386         Digraph
387         Encoding
388         FastBool
389         FastFunctions
390         FastMutInt
391         FastString
392         FastTypes
393         Fingerprint
394         FiniteMap
395         GraphBase
396         GraphColor
397         GraphOps
398         GraphPpr
399         IOEnv
400         Interval
401         LazyUniqFM
402         ListSetOps
403         Maybes
404         MonadUtils
405         OrdList
406         Outputable
407         Panic
408         Pretty
409         State
410         StringBuffer
411         Unicode
412         UniqFM
413         UniqSet
414         Util
415         VectBuiltIn
416         VectCore
417         VectMonad
418         VectType
419         VectUtils
420         Vectorise
421
422     if flag(ghci)
423         Exposed-Modules:
424             DsMeta
425             TcSplice
426             Convert
427             ByteCodeAsm
428             ByteCodeFFI
429             ByteCodeGen
430             ByteCodeInstr
431             ByteCodeItbls
432             ByteCodeLink
433             Debugger
434             GhciMonad
435             GhciTags
436             InteractiveUI
437             LibFFI
438             Linker
439             ObjLink
440             RtClosureInspect
441