summaryrefslogtreecommitdiff
path: root/compiler/GHC/Types/Hint.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Types/Hint.hs')
-rw-r--r--compiler/GHC/Types/Hint.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/GHC/Types/Hint.hs b/compiler/GHC/Types/Hint.hs
index 4182e40b3f..6304b1d7fd 100644
--- a/compiler/GHC/Types/Hint.hs
+++ b/compiler/GHC/Types/Hint.hs
@@ -330,6 +330,7 @@ data GhcHint
Triggered by: 'GHC.Tc.Errors.Types.TcRnIncorrectNameSpace'.
-}
| SuggestAppropriateTHTick NameSpace
+
{-| Suggests enabling -ddump-splices to help debug an issue
when a 'Name' is not in scope or is used in multiple
different namespaces (e.g. both as a data constructor
@@ -383,6 +384,12 @@ data GhcHint
-}
| ImportSuggestion ImportSuggestion
+ {-| Suggest importing a data constructor to bring it into scope
+ Triggered by: 'GHC.Tc.Errors.Types.TcRnTypeCannotBeMarshaled'
+
+ Test cases: ccfail004
+ -}
+ | SuggestImportingDataCon
-- | An 'InstantiationSuggestion' for a '.hsig' file. This is generated
-- by GHC in case of a 'DriverUnexpectedSignature' and suggests a way