Skip to content

Commit

Permalink
fixed name collision in Setup.lhs
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmett committed Jan 19, 2011
1 parent d1af2c3 commit 3d0d9ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.markdown
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,6 @@
/1.2.0.2/
* Fixed name collision with the new Distribution.Simple.testHook in Setup.lhs

/1.2.0.1/ /1.2.0.1/
* Weakened dependencies * Weakened dependencies


Expand Down
6 changes: 3 additions & 3 deletions Setup.lhs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ main :: IO ()
main = defaultMainWithHooks hooks main = defaultMainWithHooks hooks


hooks :: UserHooks hooks :: UserHooks
hooks = simpleUserHooks { runTests = testHook } hooks = simpleUserHooks { runTests = runMyTests }


findHPC :: LocalBuildInfo -> IO FilePath findHPC :: LocalBuildInfo -> IO FilePath
findHPC lbi = do findHPC lbi = do
Expand All @@ -48,8 +48,8 @@ testSpeculation dflt f pd =
| exe <- executables pd | exe <- executables pd
, exeName exe == "test-speculation" ] , exeName exe == "test-speculation" ]


testHook :: Args -> Bool -> PackageDescription -> LocalBuildInfo -> IO () runMyTests :: Args -> Bool -> PackageDescription -> LocalBuildInfo -> IO ()
testHook args0 _unknown pd lbi = do runMyTests args0 _unknown pd lbi = do
let args = if null args0 then [] else "-t" : args0 let args = if null args0 then [] else "-t" : args0
-- dir <- getWorkingDirectory -- dir <- getWorkingDirectory
let testDir = buildDir lbi </> "test-speculation" let testDir = buildDir lbi </> "test-speculation"
Expand Down
2 changes: 1 addition & 1 deletion speculation.cabal
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
name: speculation name: speculation
version: 1.2.0.1 version: 1.2.0.2
license: BSD3 license: BSD3
license-file: LICENSE license-file: LICENSE
author: Edward A. Kmett author: Edward A. Kmett
Expand Down

0 comments on commit 3d0d9ed

Please sign in to comment.