Skip to content

Commit

Permalink
Require test-framework >= 0.4 && < 0.6
Browse files Browse the repository at this point in the history
It will not build against 0.4.2.1 (has been deprecated on Hackage)
anymore, 0.4.2.2 and 0.5 work.
  • Loading branch information
sol committed Feb 1, 2012
1 parent e87f67b commit 73dea2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/Test/Framework/Providers/DocTest.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{-# LANGUAGE CPP #-}

{-| Wrapper for running DocTests with Test.Framework
First we get the doctests wrapped in 'Test.Framework.Test' using
Expand Down Expand Up @@ -46,7 +48,11 @@ defaultOptions = RunnerOptions { ropt_threads = Nothing
, ropt_test_patterns = Nothing
, ropt_xml_output = Nothing
, ropt_xml_nested = Nothing
#if MIN_VERSION_test_framework(0,5,0)
, ropt_color_mode = Nothing
#else
, ropt_plain_output = Nothing
#endif
, ropt_hide_successes = Nothing
}

Expand Down
4 changes: 2 additions & 2 deletions test-framework-doctest.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ Library
Build-depends:
base >= 4 && < 5,
doctest >= 0.4.0,
test-framework >= 0.4.2.1,
test-framework >= 0.4 && < 0.6,
test-framework-hunit >= 0.2,
haddock
haddock

0 comments on commit 73dea2f

Please sign in to comment.