concurrent, unique, timeout have now been split off from base
[ghc.git] / utils / ghc-pkg / ghc-pkg.cabal
1 Name: ghc-pkg
2 -- XXX Version number
3 Version: 6.9
4 Copyright: XXX
5 License: BSD3
6 -- XXX License-File: LICENSE
7 Author: XXX
8 Maintainer: cvs-fptools@haskell.org
9 Synopsis: XXX
10 Description:
11         XXX
12 Category: Development
13 build-type: Simple
14 cabal-version: >=1.2
15
16 Flag base4
17     Description: Choose the even newer, even smaller, split-up base package.
18
19 Flag base3
20   Description: Choose the new smaller, split-up base package.
21
22 Executable ghc-pkg
23     Main-Is: Main.hs
24     Extensions: CPP, ForeignFunctionInterface
25
26     if flag(base4)
27         Build-Depends: base       >= 4   && < 5
28     if flag(base3)
29         Build-Depends: base       >= 3   && < 4
30     if !flag(base3) && !flag(base4)
31         Build-Depends: base       < 3
32
33     if flag(base4)
34         Build-Depends: concurrent >= 0.1 && < 0.2,
35                        getopt     >= 0.1 && < 0.2
36
37     if flag(base3) || flag(base4)
38         Build-Depends: directory  >= 1   && < 1.1,
39                        process    >= 1   && < 1.1,
40                        pretty     >= 1   && < 1.1
41
42     Build-Depends: haskell98, filepath, Cabal
43     if !os(windows)
44         Build-Depends: unix
45     if os(windows)
46         c-sources: CRT_noglob.c