[GHC] #12670: Representation polymorphism validity check is too strict
GHC
ghc-devs at haskell.org
Mon Nov 21 22:22:35 UTC 2016
#12670: Representation polymorphism validity check is too strict
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.2.1
Component: Compiler (Type | Version: 8.0.1
checker) |
Resolution: | Keywords: typeable
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by goldfire):
Replying to [comment:13 simonpj]:
> Let's see what Richard has to say.
I say "yes".
I also say that your `Fun` is quite wrong. I prefer this one:
{{{#!hs
pattern Fun
:: forall k (a_to_b :: k). ()
=> forall r r' (a :: TYPE r) (b :: TYPE r'). (k ~ Type, a_to_b ~ (a ->
b))
=> TypeRep a -> TypeRep b -> TypeRep a_to_b
}}}
But otherwise I agree with your conclusions.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12670#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list