diff options
Diffstat (limited to 'compiler/main/DynamicLoading.hs')
-rw-r--r-- | compiler/main/DynamicLoading.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/main/DynamicLoading.hs b/compiler/main/DynamicLoading.hs index adcb0eb3b3..889a09de20 100644 --- a/compiler/main/DynamicLoading.hs +++ b/compiler/main/DynamicLoading.hs @@ -35,7 +35,7 @@ import TyCon ( TyCon ) import Name ( Name, nameModule_maybe ) import Id ( idType ) import Module ( Module, ModuleName ) -import Panic ( GhcException(..), throwGhcException ) +import Panic import FastString import ErrUtils import Outputable @@ -165,5 +165,5 @@ throwCmdLineErrorS :: DynFlags -> SDoc -> IO a throwCmdLineErrorS dflags = throwCmdLineError . showSDoc dflags throwCmdLineError :: String -> IO a -throwCmdLineError = throwGhcException . CmdLineError +throwCmdLineError = throwGhcExceptionIO . CmdLineError #endif |