aboutsummaryrefslogtreecommitdiff
path: root/haddock-library/haddock-library.cabal
diff options
context:
space:
mode:
authorOleg Grenrus <oleg.grenrus@iki.fi>2017-12-20 17:17:26 +0200
committerAlexander Biehl <alexbiehl@gmail.com>2018-02-01 14:58:18 +0100
commit11f438ed9161a7dbb5de685fd7f3f18b1942b16e (patch)
tree0952966f82c536b6cf05a543873711fbe5d99bf8 /haddock-library/haddock-library.cabal
parent2cdf1413564b49dcdf63b39d6871155c69b53974 (diff)
Add simple framework for running parser fixtures (#668)
* Add simple framework for running parser fixtures * Compatible with tree-diff-0.0.0.1 * Use parseParas to parse fixtures This allows to test all syntactic constructs available in haddock markup.
Diffstat (limited to 'haddock-library/haddock-library.cabal')
-rw-r--r--haddock-library/haddock-library.cabal22
1 files changed, 22 insertions, 0 deletions
diff --git a/haddock-library/haddock-library.cabal b/haddock-library/haddock-library.cabal
index 5b0f1481..3cd4a336 100644
--- a/haddock-library/haddock-library.cabal
+++ b/haddock-library/haddock-library.cabal
@@ -124,6 +124,28 @@ test-suite spec
build-tool-depends:
hspec-discover:hspec-discover ^>= 2.4.4
+test-suite fixtures
+ type: exitcode-stdio-1.0
+ default-language: Haskell2010
+ main-is: Fixtures.hs
+ ghc-options: -Wall
+ hs-source-dirs: fixtures
+ build-depends:
+ base-compat ^>= 0.9.3
+ , directory ^>= 1.3.0.2
+ , filepath ^>= 1.4.1.2
+ , optparse-applicative ^>= 0.14.0.0
+ , tree-diff ^>= 0.0.0.1
+
+ -- Depend on the library.
+ build-depends:
+ haddock-library
+
+ -- Versions for the dependencies below are transitively pinned by
+ -- dependency on haddock-library:lib:attoparsec
+ build-depends:
+ base
+
source-repository head
type: git
subdir: haddock-library