19a725ff75e56c60aaca33cb7d59c3611cd38711
[packages/hoopl.git] / hoopl.cabal
1 Name:                hoopl
2 Version:             3.10.2.1
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:          Ning Wang <email@ningwang.org>, Michal Terepeta <michal.terepeta@gmail.com>, Norman Ramsey <nr@cs.tufts.edu>
14 Homepage:            https://github.com/haskell/hoopl
15 Bug-Reports:         https://github.com/haskell/hoopl/issues/
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, 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 Library
33   Default-Language:  Haskell2010
34   Other-Extensions:  CPP
35                      FlexibleContexts
36                      FlexibleInstances
37                      GADTs
38                      LiberalTypeSynonyms
39                      MultiParamTypeClasses
40                      RankNTypes
41                      ScopedTypeVariables
42                      TypeFamilies
43                      TypeSynonymInstances
44   If impl(ghc>=7.2)
45     Other-Extensions: Safe Trustworthy
46
47   Hs-Source-Dirs:    src
48   Build-Depends:     base >= 4.3 && < 4.10, containers >= 0.4 && < 0.6
49   Exposed-Modules:   Compiler.Hoopl,
50                      Compiler.Hoopl.Internals,
51                      Compiler.Hoopl.Wrappers,
52                      Compiler.Hoopl.Passes.Dominator,
53                      Compiler.Hoopl.Passes.DList
54
55   -- The remaining modules are hidden *provisionally*
56   Other-modules:     Compiler.Hoopl.Checkpoint,
57                      Compiler.Hoopl.Collections,
58                      Compiler.Hoopl.Combinators,
59                      Compiler.Hoopl.Dataflow,
60                      Compiler.Hoopl.Debug,
61                      Compiler.Hoopl.Block,
62                      Compiler.Hoopl.Graph,
63                      Compiler.Hoopl.Label,
64                      Compiler.Hoopl.MkGraph,
65                      Compiler.Hoopl.Fuel,
66                      Compiler.Hoopl.Pointed,
67                      Compiler.Hoopl.Shape,
68                      Compiler.Hoopl.Show,
69                      Compiler.Hoopl.Unique,
70                      Compiler.Hoopl.XUtil
71
72   Ghc-Options:       -Wall -fno-warn-name-shadowing
73
74 Test-Suite hoopl-test
75   Default-Language:  Haskell2010
76   Type:              exitcode-stdio-1.0
77   Main-Is:           Main.hs
78   Hs-Source-Dirs:    testing src
79   Build-Depends:     base >= 4.3 && < 4.10, 
80                      containers >= 0.4 && < 0.6,
81                      filepath,
82                      mtl >= 2.1.3.1,
83                      parsec >= 3.1.7,
84                      test-framework < 0.9,
85                      test-framework-hunit < 0.4,
86                      mtl >= 2.1.3.1
87
88   if flag(testcoverage) 
89     Ghc-Options: -fhpc