aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2018-01-29 18:22:04 +0200
committerDaniel Gröber <dxld@darkboxed.org>2018-01-29 17:22:04 +0100
commit09e2236679739547984e2e29db23e160a3a80890 (patch)
treead16f90ffa32dbf31bcf088b5541c59e15e47d88 /src
parenta43c1015efbbd3e1387b38534f04ba749cf7de74 (diff)
Revert hsSourceDirs hackery (#43)
Move hack to GhcSession test for now, the corresponding logic should be moved into c-h instead of living in ghc-mod instead.
Diffstat (limited to 'src')
-rw-r--r--src/CabalHelper/Runtime/Main.hs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/CabalHelper/Runtime/Main.hs b/src/CabalHelper/Runtime/Main.hs
index 49c6789..336650a 100644
--- a/src/CabalHelper/Runtime/Main.hs
+++ b/src/CabalHelper/Runtime/Main.hs
@@ -760,13 +760,7 @@ componentEntrypoints (CFLib (ForeignLib{..}))
#endif
componentEntrypoints (CExe Executable {..})
= ChExeEntrypoint
-#if CH_MIN_VERSION_Cabal(2,0,0)
- --
- ( head ((hsSourceDirs buildInfo) ++ ["."]) </> modulePath)
- -- modulePath
-#else
modulePath
-#endif
(map gmModuleName $ otherModules buildInfo)
componentEntrypoints (CTest TestSuite { testInterface = TestSuiteExeV10 _ fp, ..})
= ChExeEntrypoint fp (map gmModuleName $ otherModules testBuildInfo)