Cabal.cabal 6.55 KB
Newer Older
1
Name: Cabal
Andres Löh's avatar
Andres Löh committed
2
Version: 1.17.0
3
Copyright: 2003-2006, Isaac Jones
Duncan Coutts's avatar
Duncan Coutts committed
4
           2005-2011, Duncan Coutts
ijones's avatar
ijones committed
5
License: BSD3
ijones's avatar
ijones committed
6
License-File: LICENSE
ijones's avatar
ijones committed
7
Author: Isaac Jones <ijones@syntaxpolice.org>
Duncan Coutts's avatar
Duncan Coutts committed
8
        Duncan Coutts <duncan@community.haskell.org>
9
Maintainer: cabal-devel@haskell.org
ijones's avatar
ijones committed
10
Homepage: http://www.haskell.org/cabal/
11
bug-reports: http://hackage.haskell.org/trac/hackage/
ijones's avatar
ijones committed
12
Synopsis: A framework for packaging Haskell software
ijones's avatar
ijones committed
13
Description:
ijones's avatar
ijones committed
14
        The Haskell Common Architecture for Building Applications and
ijones's avatar
ijones committed
15
        Libraries: a framework defining a common interface for authors to more
ijones's avatar
ijones committed
16
17
        easily build their Haskell applications in a portable way.
        .
18
19
        The Haskell Cabal is part of a larger infrastructure for distributing,
        organizing, and cataloging Haskell libraries and tools.
ijones's avatar
ijones committed
20
Category: Distribution
21
cabal-version: >=1.10
22
Build-Type: Custom
Ross Paterson's avatar
Ross Paterson committed
23
-- Even though we do use the default Setup.lhs it's vital to bootstrapping
24
-- that we build Setup.lhs using our own local Cabal source code.
25

26
Extra-Source-Files:
27
        README changelog
28

29
source-repository head
30
31
  type:     git
  location: https://github.com/haskell/cabal/
32
  subdir:   Cabal
33

34
35
36
37
38
Flag base4
    Description: Choose the even newer, even smaller, split-up base package.

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

40
41
Flag bytestring-in-base

42
Library
43
  build-depends:   base       >= 2   && < 5,
44
                   deepseq    >= 1.3 && < 1.4,
Ian Lynagh's avatar
Ian Lynagh committed
45
                   filepath   >= 1   && < 1.4
46
47
  if flag(base4) { build-depends: base >= 4 } else { build-depends: base < 4 }
  if flag(base3) { build-depends: base >= 3 } else { build-depends: base < 3 }
48
  if flag(base3)
49
    Build-Depends: directory  >= 1   && < 1.3,
Ian Lynagh's avatar
Ian Lynagh committed
50
                   process    >= 1   && < 1.2,
Ian Lynagh's avatar
Ian Lynagh committed
51
                   old-time   >= 1   && < 1.2,
Ian Lynagh's avatar
Ian Lynagh committed
52
                   containers >= 0.1 && < 0.6,
Ian Lynagh's avatar
Ian Lynagh committed
53
                   array      >= 0.1 && < 0.5,
Ian Lynagh's avatar
Ian Lynagh committed
54
                   pretty     >= 1   && < 1.2
55
56
57
58
  if flag(bytestring-in-base)
    Build-Depends: base >= 2.0 && < 2.2
  else
    Build-Depends: base < 2.0 || >= 3.0, bytestring >= 0.9
59

60
  if !os(windows)
pcapriotti's avatar
pcapriotti committed
61
    Build-Depends: unix       >= 2.0 && < 2.7
62

63
  ghc-options: -Wall -fno-ignore-asserts
Duncan Coutts's avatar
Duncan Coutts committed
64
65
  if impl(ghc >= 6.8)
    ghc-options: -fwarn-tabs
66
  nhc98-Options: -K4M
67
68

  Exposed-Modules:
ijones's avatar
ijones committed
69
        Distribution.Compiler,
ijones's avatar
ijones committed
70
71
72
        Distribution.InstalledPackageInfo,
        Distribution.License,
        Distribution.Make,
73
        Distribution.ModuleName,
ijones's avatar
ijones committed
74
75
        Distribution.Package,
        Distribution.PackageDescription,
76
        Distribution.PackageDescription.Configuration,
77
        Distribution.PackageDescription.Parse,
78
        Distribution.PackageDescription.Check,
jutaro's avatar
jutaro committed
79
        Distribution.PackageDescription.PrettyPrint,
ijones's avatar
ijones committed
80
        Distribution.ParseUtils,
81
        Distribution.ReadE,
ijones's avatar
ijones committed
82
83
        Distribution.Simple,
        Distribution.Simple.Build,
84
85
        Distribution.Simple.Build.Macros,
        Distribution.Simple.Build.PathsModule,
86
        Distribution.Simple.BuildPaths,
tibbe's avatar
tibbe committed
87
        Distribution.Simple.Bench,
88
        Distribution.Simple.Command,
89
        Distribution.Simple.Compiler,
ijones's avatar
ijones committed
90
        Distribution.Simple.Configure,
Ross Paterson's avatar
Ross Paterson committed
91
        Distribution.Simple.GHC,
92
        Distribution.Simple.LHC,
93
        Distribution.Simple.Haddock,
94
        Distribution.Simple.Hpc,
Ross Paterson's avatar
Ross Paterson committed
95
        Distribution.Simple.Hugs,
ijones's avatar
ijones committed
96
        Distribution.Simple.Install,
97
        Distribution.Simple.InstallDirs,
Ross Paterson's avatar
Ross Paterson committed
98
        Distribution.Simple.JHC,
ijones's avatar
ijones committed
99
        Distribution.Simple.LocalBuildInfo,
Ross Paterson's avatar
Ross Paterson committed
100
        Distribution.Simple.NHC,
101
        Distribution.Simple.PackageIndex,
102
103
104
        Distribution.Simple.PreProcess,
        Distribution.Simple.PreProcess.Unlit,
        Distribution.Simple.Program,
105
        Distribution.Simple.Program.Ar,
Duncan Coutts's avatar
Duncan Coutts committed
106
107
        Distribution.Simple.Program.Builtin,
        Distribution.Simple.Program.Db,
108
        Distribution.Simple.Program.GHC,
Duncan Coutts's avatar
Duncan Coutts committed
109
        Distribution.Simple.Program.HcPkg,
110
        Distribution.Simple.Program.Hpc,
111
        Distribution.Simple.Program.Ld,
Duncan Coutts's avatar
Duncan Coutts committed
112
113
114
        Distribution.Simple.Program.Run,
        Distribution.Simple.Program.Script,
        Distribution.Simple.Program.Types,
ijones's avatar
ijones committed
115
        Distribution.Simple.Register,
116
        Distribution.Simple.Setup,
ijones's avatar
ijones committed
117
        Distribution.Simple.SrcDist,
118
        Distribution.Simple.Test,
Andres Loeh's avatar
Andres Loeh committed
119
        Distribution.Simple.UHC,
120
        Distribution.Simple.UserHooks,
ijones's avatar
ijones committed
121
        Distribution.Simple.Utils,
122
        Distribution.System,
ttuegel's avatar
ttuegel committed
123
        Distribution.TestSuite,
124
        Distribution.Text,
125
        Distribution.Verbosity,
ijones's avatar
ijones committed
126
        Distribution.Version,
Ian Lynagh's avatar
Ian Lynagh committed
127
        Distribution.Compat.ReadP,
128
        Language.Haskell.Extension
129
130

  Other-Modules:
ijones's avatar
ijones committed
131
        Distribution.GetOpt,
132
        Distribution.Compat.Exception,
133
        Distribution.Compat.CopyFile,
Duncan Coutts's avatar
Duncan Coutts committed
134
135
        Distribution.Compat.TempFile,
        Distribution.Simple.GHC.IPI641,
136
137
        Distribution.Simple.GHC.IPI642,
        Paths_Cabal
138

139
140
  Default-Language: Haskell98
  Default-Extensions: CPP
141

142
-- Small, fast running tests.
143
144
test-suite unit-tests
  type: exitcode-stdio-1.0
145
146
147
148
149
150
  main-is: UnitTests.hs
  hs-source-dirs: tests
  build-depends:
        base,
        test-framework,
        test-framework-hunit,
151
        test-framework-quickcheck2,
152
        HUnit,
153
        QuickCheck,
154
155
156
157
158
159
160
        Cabal
  Default-Language: Haskell98

-- Large, system tests that build packages.
test-suite package-tests
  type: exitcode-stdio-1.0
  main-is: PackageTests.hs
161
162
163
164
165
166
167
168
169
170
171
  other-modules: PackageTests.BuildDeps.GlobalBuildDepsNotAdditive1.Check,
                 PackageTests.BuildDeps.GlobalBuildDepsNotAdditive2.Check,
                 PackageTests.BuildDeps.InternalLibrary0.Check,
                 PackageTests.BuildDeps.InternalLibrary1.Check,
                 PackageTests.BuildDeps.InternalLibrary2.Check,
                 PackageTests.BuildDeps.InternalLibrary3.Check,
                 PackageTests.BuildDeps.InternalLibrary4.Check,
                 PackageTests.BuildDeps.TargetSpecificDeps1.Check,
                 PackageTests.BuildDeps.TargetSpecificDeps2.Check,
                 PackageTests.BuildDeps.TargetSpecificDeps3.Check,
                 PackageTests.BuildDeps.SameDepsAllRound.Check,
ttuegel's avatar
ttuegel committed
172
                 PackageTests.TestOptions.Check,
173
                 PackageTests.TestStanza.Check,
174
                 PackageTests.TestSuiteExeV10.Check,
tibbe's avatar
tibbe committed
175
                 PackageTests.BenchmarkStanza.Check,
176
                 PackageTests.TemplateHaskell.Check,
177
                 PackageTests.PackageTester
178
179
180
181
  hs-source-dirs: tests
  build-depends:
        base,
        test-framework,
182
        test-framework-quickcheck2 >= 0.2.12,
183
184
185
186
187
188
189
190
191
192
        test-framework-hunit,
        HUnit,
        QuickCheck >= 2.1.0.1,
        Cabal,
        process,
        directory,
        filepath,
        extensible-exceptions,
        bytestring,
        unix
193
  Default-Language: Haskell98