fix build with old ghc

And add missing (unused) mappend instance
This commit is contained in:
Joey Hess 2016-01-13 12:18:20 -04:00
parent 0b24c0837a
commit d91eb24b59
Failed to extract signature

View file

@ -11,6 +11,8 @@ module Types.Test where
#ifdef WITH_TESTSUITE
import Test.Tasty.Options
import Data.Monoid
import Prelude
#endif
#ifdef WITH_TESTSUITE
@ -21,6 +23,9 @@ data TestOptions = TestOptions
instance Monoid TestOptions where
mempty = TestOptions mempty False
mappend a b = TestOptions
(tastyOptionSet a <> tastyOptionSet b)
(keepFailuresOption a || keepFailuresOption b)
#else
type TestOptions = ()