From 09e2236679739547984e2e29db23e160a3a80890 Mon Sep 17 00:00:00 2001 From: Alan Zimmerman Date: Mon, 29 Jan 2018 18:22:04 +0200 Subject: 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. --- src/CabalHelper/Runtime/Main.hs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/CabalHelper/Runtime') 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) -- cgit v1.2.3