Skip to content

Commit

Permalink
fix: minor language improvements to the errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brekk committed May 6, 2024
1 parent 575adb1 commit ef68635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/main/Explain/Format.hs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ createSimpleErrorDiagnostic color _ typeError = case typeError of
NoInstanceFound cls ts ->
"Instance not found\n\n"
<> "No instance for '" <> lst (predToStr True (mempty, mempty) (IsIn cls ts Nothing)) <> "' was found.\n\n"
<> "Hint: Verify that you imported the module where the " <> cls <> "\ninstance for '" <> unwords (prettyPrintType True <$> ts) <> "' is defined"
<> "Hint: Verify that you imported the module where the " <> cls <> "\ninstance for '" <> unwords (prettyPrintType True <$> ts) <> "' is defined\n"
<> "Note: Remember that instance methods are automatically imported when the module\nis imported, directly, or indirectly."

AmbiguousType (TV _ _, IsIn cls _ _ : _) ->
Expand Down

0 comments on commit ef68635

Please sign in to comment.