Open GoogleCodeExporter opened 8 years ago
The attachment contains some diagnostics and hints at a possible solution.
Original comment by ggr...@gmail.com
on 10 Aug 2011 at 8:55
This Haskell program:
$ cat impred.hs
module Foo where
data A = A (forall x. x -> x, Int)
--f3 :: A -> (forall x. x -> x, Int)
f3 (A (c@(a, b))) = c
Compiles with "ghc -XImpredicativeTypes impred.hs", with or without the type
signature.
Original comment by ggr...@gmail.com
on 10 Aug 2011 at 9:11
r766 nudges the user towards using a type signature.
Original comment by ggr...@gmail.com
on 10 Aug 2011 at 9:45
Original issue reported on code.google.com by
ggr...@gmail.com
on 10 Aug 2011 at 8:53Attachments: