Commit 1909985b authored by Ryan Scott's avatar Ryan Scott
Browse files

Fix some excessive spacing in error messages

Test Plan: If it builds, ship it

Reviewers: austin, bgamari

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3729
parent 4700baaf
......@@ -521,5 +521,5 @@ warnMissingAT name
-- Warn only if -Wmissing-methods AND not a signature
; warnTc (Reason Opt_WarnMissingMethods) (warn && hsc_src /= HsigFile)
(text "No explicit" <+> text "associated type"
<+> text "or default declaration for "
<+> text "or default declaration for"
<+> quotes (ppr name)) }
drvfail011.hs:8:1:
No instance for (Eq a) arising from a use of ‘==’
Possible fix: add (Eq a) to the context of the instance declaration
In the expression: ((a1 == b1))
In an equation for ‘==’: (==) (T1 a1) (T1 b1) = ((a1 == b1))
When typechecking the code for ‘==’
in a derived instance for ‘Eq (T a)’:
To see the code I am typechecking, use -ddump-deriv
In the instance declaration for ‘Eq (T a)’
drvfail011.hs:8:1: error:
No instance for (Eq a) arising from a use of ‘==’
Possible fix: add (Eq a) to the context of the instance declaration
In the expression: ((a1 == b1))
In an equation for ‘==’: (==) (T1 a1) (T1 b1) = ((a1 == b1))
When typechecking the code for ‘==’
in a derived instance for ‘Eq (T a)’:
To see the code I am typechecking, use -ddump-deriv
In the instance declaration for ‘Eq (T a)’
Simple2.hs:21:1: warning: [-Wmissing-methods (in -Wdefault)]
• No explicit associated type or default declaration for ‘S3n’
• No explicit associated type or default declaration for ‘S3n’
• In the instance declaration for ‘C3 Char’
Simple2.hs:21:10: warning: [-Wmissing-methods (in -Wdefault)]
......@@ -9,7 +9,7 @@ Simple2.hs:21:10: warning: [-Wmissing-methods (in -Wdefault)]
• In the instance declaration for ‘C3 Char’
Simple2.hs:29:1: warning: [-Wmissing-methods (in -Wdefault)]
• No explicit associated type or default declaration for ‘S3n’
• No explicit associated type or default declaration for ‘S3n’
• In the instance declaration for ‘C3 Bool’
Simple2.hs:29:10: warning: [-Wmissing-methods (in -Wdefault)]
......@@ -18,11 +18,11 @@ Simple2.hs:29:10: warning: [-Wmissing-methods (in -Wdefault)]
• In the instance declaration for ‘C3 Bool’
Simple2.hs:39:1: warning: [-Wmissing-methods (in -Wdefault)]
• No explicit associated type or default declaration for ‘S3’
• No explicit associated type or default declaration for ‘S3’
• In the instance declaration for ‘C3 Float’
Simple2.hs:39:1: warning: [-Wmissing-methods (in -Wdefault)]
• No explicit associated type or default declaration for ‘S3n’
• No explicit associated type or default declaration for ‘S3n’
• In the instance declaration for ‘C3 Float’
Simple2.hs:39:10: warning: [-Wmissing-methods (in -Wdefault)]
......
tc254.hs:8:1: warning: [-Wmissing-methods (in -Wdefault)]
• No explicit associated type or default declaration for ‘Typ’
• No explicit associated type or default declaration for ‘Typ’
• In the instance declaration for ‘Cls Int’
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment