diff options
| author | Simon Hengel <sol@typeful.net> | 2012-09-24 10:07:44 +0200 | 
|---|---|---|
| committer | Simon Hengel <sol@typeful.net> | 2012-10-01 11:30:51 +0200 | 
| commit | 25badd84cf6e09f4e556c7511a78144d38578d9f (patch) | |
| tree | ed4d4d778e249b8991c62e37e837263a3484fd54 /haddock.cabal | |
| parent | c0d71b685dfdcbafa8ca0b3924aef6629142e6dc (diff) | |
Add test-suite section for parsetests to cabal file
+ get rid of HUnit dependency
Diffstat (limited to 'haddock.cabal')
| -rw-r--r-- | haddock.cabal | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/haddock.cabal b/haddock.cabal index f70d6813..3486b2f7 100644 --- a/haddock.cabal +++ b/haddock.cabal @@ -212,6 +212,34 @@ test-suite html-tests    hs-source-dirs:   tests/html-tests    build-depends:    base, directory, process, filepath, Cabal +test-suite spec +  type:             exitcode-stdio-1.0 +  default-language: Haskell2010 +  main-is:          parsetests.hs +  hs-source-dirs: +      tests/unit-tests +    , tests/nanospec +    , src + +  build-depends: +      base +    , ghc +    , containers +    , array + +  -- NOTE: As of this writing, Cabal does not properly handle alex/happy for +  -- test suites.  We work around this by adding dist/build to hs-source-dirs, +  -- so that the the generated lexer/parser from the library is used.  I +  -- addition we depend on 'haddock', so that the library is compiled before +  -- the test suite. +  -- +  -- The corresponding cabal ticket is here: +  -- https://github.com/haskell/cabal/issues/943 +  hs-source-dirs: +      dist/build +  build-depends: +      haddock +  source-repository head    type:     git    location: http://darcs.haskell.org/haddock.git | 
