summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Module.hs-boot
diff options
context:
space:
mode:
authorAlfredo Di Napoli <alfredo@well-typed.com>2021-06-02 10:14:55 +0200
committerAlfredo Di Napoli <alfredo@well-typed.com>2021-06-28 07:50:59 +0200
commite4af16f1a96efdf21490f5558260aa3d3d78e9f8 (patch)
treebf46c464dabf131a20d658abd59db24b4e7c2c82 /compiler/GHC/Tc/Module.hs-boot
parent469126b3cef2936d9831283a77d54330d0ff1ba8 (diff)
downloadhaskell-wip/adinapoli-issue-19930.tar.gz
Try to simplify zoo of functions in `Tc.Utils.Monad`wip/adinapoli-issue-19930
This commit tries to untangle the zoo of diagnostic-related functions in `Tc.Utils.Monad` so that we can have the interfaces mentions only `TcRnMessage`s while we push the creation of these messages upstream. It also ports TcRnMessage diagnostics to use the new API, in particular this commit switch to use TcRnMessage in the external interfaces of the diagnostic functions, and port the old SDoc to be wrapped into TcRnUnknownMessage.
Diffstat (limited to 'compiler/GHC/Tc/Module.hs-boot')
-rw-r--r--compiler/GHC/Tc/Module.hs-boot6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/GHC/Tc/Module.hs-boot b/compiler/GHC/Tc/Module.hs-boot
index 2748c769e4..40d89fe727 100644
--- a/compiler/GHC/Tc/Module.hs-boot
+++ b/compiler/GHC/Tc/Module.hs-boot
@@ -2,11 +2,11 @@ module GHC.Tc.Module where
import GHC.Prelude
import GHC.Types.TyThing(TyThing)
+import GHC.Tc.Errors.Types (TcRnMessage)
import GHC.Tc.Types (TcM)
-import GHC.Utils.Outputable (SDoc)
import GHC.Types.Name (Name)
checkBootDeclM :: Bool -- ^ True <=> an hs-boot file (could also be a sig)
-> TyThing -> TyThing -> TcM ()
-missingBootThing :: Bool -> Name -> String -> SDoc
-badReexportedBootThing :: Bool -> Name -> Name -> SDoc
+missingBootThing :: Bool -> Name -> String -> TcRnMessage
+badReexportedBootThing :: Bool -> Name -> Name -> TcRnMessage