Skip to content

Commit

Permalink
Move GHC feature checks out of the loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
23Skidoo committed Jan 7, 2018
1 parent 7d68072 commit b12fd31
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import Test.Cabal.Prelude
main = cabalTest $ do
skipIf =<< isOSX -- TODO: re-enable this once the macOS Travis
-- issues are resolved, see discussion in #4902.

hasShared <- hasSharedLibraries
hasProfiled <- hasProfiledLibraries
hpcOk <- correctHpcVersion

forM_ (choose4 [True, False]) $ \(libProf, exeProf, exeDyn, shared) ->
do
let
Expand All @@ -26,9 +31,6 @@ main = cabalTest $ do
| otherwise = Nothing
args = "test-Short" : "--enable-coverage" : opts
recordMode DoNotRecord $ do
hasShared <- hasSharedLibraries
hasProfiled <- hasProfiledLibraries
hpcOk <- correctHpcVersion
let
skip =
not hpcOk
Expand Down

0 comments on commit b12fd31

Please sign in to comment.