From 489d95b9603c1f34575a67b2d1f069e80769d59a Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Sat, 10 Aug 2013 13:57:58 +0100 Subject: Use Hspec instead of nanospec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is motivated by the fact that Haddock tests are not ran by the GHC's ‘validate’ script so we're pretty liberal on dependencies in that area. Full Hspec gives us some nice features such as Quickcheck integration. --- haddock.cabal | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'haddock.cabal') diff --git a/haddock.cabal b/haddock.cabal index 054a50f9..78fbe172 100644 --- a/haddock.cabal +++ b/haddock.cabal @@ -205,11 +205,9 @@ test-suite spec main-is: Spec.hs hs-source-dirs: test - , test/nanospec , src other-modules: - Test.Hspec Haddock.ParseSpec build-depends: @@ -218,6 +216,7 @@ test-suite spec , containers , deepseq , array + , hspec -- 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, -- cgit v1.2.3