Skip to content

Commit 47d83a6

Browse files
committed
cleanup2
1 parent d603695 commit 47d83a6

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

haskell-debugger/GHC/Debugger/Debuggee.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import Data.Function
2424
import Data.Functor.Contravariant
2525
import Data.Maybe
2626
import Prelude hiding (mod)
27-
#ifdef MIN_VERSION_unix
28-
#endif
2927
import Data.Text (Text)
3028
import Network.Socket hiding (Debug)
3129
import System.Process.Internals (mkProcessHandle)
@@ -112,7 +110,6 @@ mkExternalInterpreterFromStdInSetup :: StdStream -> LogAction IO DebuggerLog ->
112110
mkExternalInterpreterFromStdInSetup givenStdStream l dflags mainGhcThread = do
113111
unless (gopt Opt_ExternalInterpreter dflags) $ do
114112
throw $ InconsistentInterpreterFlags $ "Used ghc flag -fno-external-interpreter instead of --internal-interpreter haskell-debugger flag."
115-
let externalInterpreterProg = getPgmI dflags
116113

117114
(putHandles,fwdThread) <- liftIO $ externalInterpFwdThread l
118115
-- Make sure to override the function which creates the external
@@ -131,8 +128,8 @@ mkExternalInterpreterFromStdInSetup givenStdStream l dflags mainGhcThread = do
131128
#if MIN_VERSION_ghc(9,15,0)
132129
#else
133130
, cmdspec = case cmdspec cp of
134-
ShellCommand (words -> ws) -> ShellCommand $ unwords $ externalInterpreterProg : drop 1 ws
135-
RawCommand _fp args -> RawCommand externalInterpreterProg args
131+
ShellCommand (words -> ws) -> ShellCommand $ unwords $ getPgmI dflags : drop 1 ws
132+
RawCommand _fp args -> RawCommand (getPgmI dflags) args
136133
#endif
137134
}
138135
putHandles (o, e)

haskell-debugger/GHC/Debugger/Monad.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ import Colog.Core as Logger
7676
import {-# SOURCE #-} GHC.Debugger.Runtime.Instances.Discover (RuntimeInstancesCache, emptyRuntimeInstancesCache)
7777
import GHC.Stack.Annotation
7878
import GHC.Platform.Ways
79-
#if MIN_VERSION_ghc(9,15,0)
80-
import GHC.Data.FastString.Env (emptyFsEnv)
81-
#endif
8279
import GHC.Unit.Home.Graph
8380
import GHC.Debugger.Utils.Orphans () -- bring orphan instances to everything which uses `Debugger`
8481
import System.Directory (getCurrentDirectory)
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Cannot use unsupported haskell-debugger-view version found in the transitive closure: 0.1.0.0 (supported: 0.2 <= && < 0.3)
2-
While handling Cannot use unsupported haskell-debugger-view version found in the transitive closure: 0.1.0.0 (supported: 0.2 <= && < 0.3)

0 commit comments

Comments
 (0)