mirror of
https://github.com/ekmett/speculation.git
synced 2024-10-05 17:28:13 +03:00
fixed name collision in Setup.lhs
This commit is contained in:
parent
d1af2c3405
commit
3d0d9edb9a
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user