fixed name collision in Setup.lhs

This commit is contained in:
Edward Kmett 2011-01-19 13:50:47 -05:00
parent d1af2c3405
commit 3d0d9edb9a
3 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,6 @@
/1.2.0.2/
* Fixed name collision with the new Distribution.Simple.testHook in Setup.lhs
/1.2.0.1/
* Weakened dependencies

View File

@ -30,7 +30,7 @@ main :: IO ()
main = defaultMainWithHooks hooks
hooks :: UserHooks
hooks = simpleUserHooks { runTests = testHook }
hooks = simpleUserHooks { runTests = runMyTests }
findHPC :: LocalBuildInfo -> IO FilePath
findHPC lbi = do
@ -48,8 +48,8 @@ testSpeculation dflt f pd =
| exe <- executables pd
, exeName exe == "test-speculation" ]
testHook :: Args -> Bool -> PackageDescription -> LocalBuildInfo -> IO ()
testHook args0 _unknown pd lbi = do
runMyTests :: Args -> Bool -> PackageDescription -> LocalBuildInfo -> IO ()
runMyTests args0 _unknown pd lbi = do
let args = if null args0 then [] else "-t" : args0
-- dir <- getWorkingDirectory
let testDir = buildDir lbi </> "test-speculation"

View File

@ -1,5 +1,5 @@
name: speculation
version: 1.2.0.1
version: 1.2.0.2
license: BSD3
license-file: LICENSE
author: Edward A. Kmett