X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FInteractiveEval.hs;h=5106d34f1bfa1ffc354d77854bda7f9ee88e8876;hp=42f0922370d4e0278935232d3700814dc274ff91;hb=940524aec90652b5ef81789c9a453c57c0e42cc9;hpb=485b80f9c422e49a441ec0b175c39799630171da diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs index 42f0922..5106d34 100644 --- a/compiler/main/InteractiveEval.hs +++ b/compiler/main/InteractiveEval.hs @@ -451,7 +451,7 @@ bindLocalsAtBreakpoint hsc_env apStack info = do -- _result in scope at any time. let result_fs = FSLIT("_result") result_name = mkInternalName (getUnique result_fs) - (mkVarOccFS result_fs) (srcSpanStart span) + (mkVarOccFS result_fs) span result_id = Id.mkLocalId result_name result_ty -- for each Id we're about to bind in the local envt: @@ -478,7 +478,7 @@ bindLocalsAtBreakpoint hsc_env apStack info = do mkNewId :: OccName -> Id -> IO Id mkNewId occ id = do let uniq = idUnique id - loc = nameSrcLoc (idName id) + loc = nameSrcSpan (idName id) name = mkInternalName uniq occ loc ty = idType id new_id = Id.mkGlobalId VanillaGlobal name ty (idInfo id)