diff options
author | Kai Prott <kai.prott@hotmail.de> | 2021-11-24 11:58:35 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-11-26 16:01:47 -0500 |
commit | 1830eea7a4053bf1973222c4750cd2796470d55f (patch) | |
tree | 3bcafa6ba0a632bede35bfa778c00a416dcb63b4 | |
parent | 51bcb986f786229df6b5ff3726570eba74fcb9d0 (diff) | |
download | haskell-1830eea7a4053bf1973222c4750cd2796470d55f.tar.gz |
Simplify printQualification
-rw-r--r-- | compiler/GHC/Runtime/Loader.hs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/GHC/Runtime/Loader.hs b/compiler/GHC/Runtime/Loader.hs index add12792c7..fbfc92cdee 100644 --- a/compiler/GHC/Runtime/Loader.hs +++ b/compiler/GHC/Runtime/Loader.hs @@ -139,17 +139,12 @@ loadPlugin' occ_name plugin_name hsc_env mnwib mod_name Left actual_type -> throwGhcExceptionIO (CmdLineError $ showSDocForUser dflags (ue_units (hsc_unit_env hsc_env)) - printQualification $ hsep + alwaysQualify $ hsep [ text "The value", ppr name , text "with type", ppr actual_type , text "did not have the type" , ppr pluginTyConName, text "as required"]) - where - printQualification = QueryQualify { - queryQualifyName = alwaysQualifyNames, - queryQualifyModule = neverQualifyModules, - queryQualifyPackage = neverQualifyPackages - } + , text "as required"]) Right plugin -> return (plugin, mod_iface) } } } |