Migrate testing/Main.hs to TestFramework
[packages/hoopl.git] / hoopl.cabal
1 Name:                hoopl
2 Version:             3.10.1.0
3 -- NOTE: Don't forget to update ./changelog.md
4 Description:
5   Higher-order optimization library
6   .
7   See /Norman Ramsey, Joao Dias, and Simon Peyton Jones./
8   <http://research.microsoft.com/en-us/um/people/simonpj/Papers/c--/hoopl-haskell10.pdf "Hoopl: A Modular, Reusable Library for Dataflow Analysis and Transformation"> /(2010)/ for more details.
9
10 License:             BSD3
11 License-File:        LICENSE
12 Author:              Norman Ramsey, Joao Dias, Simon Marlow and Simon Peyton Jones
13 Maintainer:          nr@cs.tufts.edu, andreas.voellmy@gmail.com, email@ningwang.org
14 Homepage:            http://ghc.cs.tufts.edu/hoopl/
15 Bug-Reports:         http://ghc.haskell.org/trac/ghc/newticket?component=libraries/hoopl
16 Build-Type:          Simple
17 Cabal-Version:       >=1.10
18 Synopsis:            A library to support dataflow analysis and optimization
19 Category:            Compilers/Interpreters
20 Tested-With:         GHC>=7.0.1
21 Extra-Source-Files:  README.md, hoopl.pdf, changelog.md
22
23 Source-repository head
24   Type:       git
25   Location:   http://git.haskell.org/packages/hoopl.git
26
27 flag testcoverage {
28   description: Enable test coverage report
29   default: False
30 }
31
32
33 Library
34   Default-Language:  Haskell2010
35   Other-Extensions:  CPP
36                      FlexibleContexts
37                      FlexibleInstances
38                      GADTs
39                      LiberalTypeSynonyms
40                      MultiParamTypeClasses
41                      RankNTypes
42                      ScopedTypeVariables
43                      TypeFamilies
44                      TypeSynonymInstances
45   If impl(ghc>=7.2)
46     Other-Extensions: Safe Trustworthy
47
48   Hs-Source-Dirs:    src
49   Build-Depends:     base >= 4.3 && < 4.9, containers >= 0.4 && < 0.6
50   Exposed-Modules:   Compiler.Hoopl,
51                      Compiler.Hoopl.Internals,
52                      Compiler.Hoopl.Wrappers,
53                      Compiler.Hoopl.Passes.Dominator,
54                      Compiler.Hoopl.Passes.DList
55 --                     Compiler.Hoopl.DataflowFold,
56 --                     Compiler.Hoopl.OldDataflow,
57
58   -- The remaining modules are hidden *provisionally*
59   Other-modules:     Compiler.Hoopl.Checkpoint,
60                      Compiler.Hoopl.Collections,
61                      Compiler.Hoopl.Combinators,
62                      Compiler.Hoopl.Dataflow,
63                      Compiler.Hoopl.Debug,
64                      Compiler.Hoopl.Block,
65                      Compiler.Hoopl.Graph,
66                      Compiler.Hoopl.Label,
67                      Compiler.Hoopl.MkGraph,
68                      Compiler.Hoopl.Fuel,
69                      Compiler.Hoopl.Pointed,
70                      Compiler.Hoopl.Shape,
71                      Compiler.Hoopl.Show,
72                      Compiler.Hoopl.Unique,
73                      Compiler.Hoopl.XUtil
74
75   Ghc-Options:       -Wall -fno-warn-name-shadowing
76
77 Test-Suite hoopl-test
78   Default-Language:  Haskell2010
79   Type:              exitcode-stdio-1.0
80   Main-Is:           Main.hs
81   Hs-Source-Dirs:    testing src
82   Build-Depends:     base >= 4.3 && < 4.9, 
83                      containers >= 0.4 && < 0.6,
84                      filepath,
85                      mtl >= 2.1.3.1,
86                      parsec >= 3.1.7,
87                      test-framework < 0.9,
88                      test-framework-hunit < 0.4
89   if flag(testcoverage) {
90     Ghc-Options: -fhpc
91   }