How to use detailed-0.9 in cabal testing
I'm having a surprising amount of difficulty getting the unit tests to run under cabal. I've copied the test code verbatim from the cabal documentation , with the exception of changing the module name {-# LANGUAGE FlexibleInstances #-} module Test.Integral ( tests ) where import Distribution.TestSuite instance TestOptions (String, Bool) where name = fst options = const [] defaultOptions _ = return (Options []) check _ _ = [] instance PureTestable (String, Bool) where run (name, result) _ | result == True = Pass | result == False = Fail (name ++ " failed!") test :: (String, Bool) -> Test test =