X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghci%2FInteractiveUI.hs;h=933a98e44437062c928bf6d6624d21f228b04a38;hb=0f66260b5afc88accb6af6a09b20c3a4de51c39a;hp=4fdf949233121c580a34e1cf1f8f1bc57af5ce50;hpb=178eeaa814ab8323a54024e4bb45b4629b7828c8;p=ghc-hetmet.git diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index 4fdf949..933a98e 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -52,7 +52,7 @@ import StaticFlags import Linker import Util import NameSet -import Maybes ( orElse ) +import Maybes ( orElse, expectJust ) import FastString import Encoding import MonadUtils ( liftIO ) @@ -2247,7 +2247,7 @@ listModuleLine modl line = do case this of [] -> panic "listModuleLine" summ:_ -> do - let filename = fromJust (ml_hs_file (GHC.ms_location summ)) + let filename = expectJust "listModuleLine" (ml_hs_file (GHC.ms_location summ)) loc = GHC.mkSrcLoc (mkFastString (filename)) line 0 io $ listAround (GHC.srcLocSpan loc) False