File tree Expand file tree Collapse file tree
haskell-debugger/GHC/Debugger Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ import Data.Function
2424import Data.Functor.Contravariant
2525import Data.Maybe
2626import Prelude hiding (mod )
27- #ifdef MIN_VERSION_unix
28- #endif
2927import Data.Text (Text )
3028import Network.Socket hiding (Debug )
3129import System.Process.Internals (mkProcessHandle )
@@ -112,7 +110,6 @@ mkExternalInterpreterFromStdInSetup :: StdStream -> LogAction IO DebuggerLog ->
112110mkExternalInterpreterFromStdInSetup 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)
Original file line number Diff line number Diff line change @@ -76,9 +76,6 @@ import Colog.Core as Logger
7676import {- # SOURCE #-} GHC.Debugger.Runtime.Instances.Discover (RuntimeInstancesCache , emptyRuntimeInstancesCache )
7777import GHC.Stack.Annotation
7878import GHC.Platform.Ways
79- #if MIN_VERSION_ghc(9,15,0)
80- import GHC.Data.FastString.Env (emptyFsEnv )
81- #endif
8279import GHC.Unit.Home.Graph
8380import GHC.Debugger.Utils.Orphans () -- bring orphan instances to everything which uses `Debugger`
8481import System.Directory (getCurrentDirectory )
Original file line number Diff line number Diff line change 11Cannot 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)
You can’t perform that action at this time.
0 commit comments