blob: 954b2d9de364b215aede0238e361ddc75a3d9972 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
T9576: T9576.hs:6:31:
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)
|