summaryrefslogtreecommitdiff
path: root/utils/ghc-pkg/ghc-pkg.cabal
blob: 0ab35341794f61594b2e5d1f462a96602f9b56a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Name: ghc-pkg
-- XXX Version number
Version: 6.9
Copyright: XXX
License: BSD3
-- XXX License-File: LICENSE
Author: XXX
Maintainer: cvs-fptools@haskell.org
Synopsis: XXX
Description:
	XXX
Category: Development
build-type: Simple
cabal-version: >=1.2

Flag base4
    Description: Choose the even newer, even smaller, split-up base package.

Flag base3
  Description: Choose the new smaller, split-up base package.

Executable ghc-pkg
    Main-Is: Main.hs
    Extensions: CPP, ForeignFunctionInterface

    if flag(base4)
        Build-Depends: base       >= 4   && < 5
    if flag(base3)
        Build-Depends: base       >= 3   && < 4
    if !flag(base3) && !flag(base4)
        Build-Depends: base       < 3

    if flag(base4)
        Build-Depends: concurrent >= 0.1 && < 0.2,
                       getopt     >= 0.1 && < 0.2

    if flag(base3) || flag(base4)
        Build-Depends: directory  >= 1   && < 1.1,
                       process    >= 1   && < 1.1,
                       pretty     >= 1   && < 1.1

    Build-Depends: haskell98, filepath, Cabal
    if !os(windows)
        Build-Depends: unix
    if os(windows)
        c-sources: CRT_noglob.c