aboutsummaryrefslogtreecommitdiff
path: root/tests/GhcSession.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/GhcSession.hs')
-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