Skip to content

Commit de608cf

Browse files
Saizanalt-romes
authored andcommitted
Do not crash on haskell-debugger-view-inplace
1 parent 4a16ec9 commit de608cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

haskell-debugger/GHC/Debugger/Monad.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,10 @@ findHsDebuggerViewUnitId mod_graph = do
876876
if any (\(l,h) -> l <= version && version < h) supported_ranges
877877
then return (Just hdv_uid)
878878
else throwM UnsupportedHsDbgViewVersion{supportedVersions=supported_ranges, actualVersion=version}
879+
Nothing
880+
| "inplace" `L.isSuffixOf` unitIdString hdv_uid
881+
-- will be built as a target later
882+
-> return (Just hdv_uid)
879883
Nothing ->
880884
error "Could not find unit info for haskell-debugger-view"
881885
[] -> do

0 commit comments

Comments
 (0)