e type of
'a' and 'b', so they are ambiguous and are defaulted to
(Integer,Integer).
Simon
| -Original Message-
| From: [EMAIL PROTECTED]
[mailto:glasgow-haskell-bugs-
| [EMAIL PROTECTED] On Behalf Of Frederik Eaton
| Sent: 24 May 2005 10:19
| To: Simon Peyton-Jones
| Cc: g
Thank you!
I imagine that if you think you've fixed it then you have, but here's
an example:
Prelude Data.Generics> (\x -> case cast x of Just x'@(a,b) -> print x'; Nothing
-> putStrLn "No match") (2::Int,3::Int)
Top level:
No instance for (Show (IO ()))
arising from use of `print' at
Good point
Happily, I improved this error message (which has been in SourceForge
for some time) last Friday. At least I hope so; you didn't actually
give an example. If you do, I'll try it. Or check out the HEAD and see
if things have improved.
Simon
| -Original Message-
| From: [EMAI