aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2017-12-14 16:00:59 +0200
committerDaniel Gröber <dxld@darkboxed.org>2018-01-18 14:10:26 +0100
commitf03e60f73844afe81bdefddce28733ac16da3c4a (patch)
treec102941abadbc8c45f9e1850acc4d668ac7989e0 /tests
parentc76893a035c37c949cca9c09f10ccea59402cf55 (diff)
Tests pass for backpack
Diffstat (limited to 'tests')
-rw-r--r--tests/GhcSession.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs
index ab07e85..442fccd 100644
--- a/tests/GhcSession.hs
+++ b/tests/GhcSession.hs
@@ -23,6 +23,16 @@ import System.Process (readProcess)
import Distribution.Helper
+import Distribution.Types.Executable
+ ( Executable(..),
+ exeModules
+ )
+import qualified Distribution.ModuleName as ModuleName
+import Distribution.Types.BuildInfo
+import System.FilePath ( (</>), takeExtension
+ , takeDirectory, replaceExtension
+ ,isRelative )
+
import CabalHelper.Shared.Common
@@ -119,6 +129,7 @@ test dir = do
| "-" `isPrefixOf` x = "\n "++x
| otherwise = x
+
compileModule :: NeedsBuildOutput -> ChEntrypoint -> [String] -> IO Bool
compileModule nb ep opts = do