blob: 49d41a3a3672659eeb1428db0d5ee3a12504c03c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
T9576: T9576.hs:6:31: error:
No instance for (Show Foo) arising from a use of ‘showsPrec’
In the second argument of ‘(.)’, namely ‘(showsPrec 11 b1)’
In the second argument of ‘showParen’, namely
‘((.) (showString "MkBar ") (showsPrec 11 b1))’
In the expression:
showParen (a >= 11) ((.) (showString "MkBar ") (showsPrec 11 b1))
When typechecking the code for ‘showsPrec’
in a derived instance for ‘Show Bar’:
To see the code I am typechecking, use -ddump-deriv
(deferred type error)
|