[GHC] #16116: Explicit foralls in associated type family equations are oblivious to class-bound variables
GHC
ghc-devs at haskell.org
Wed Jan 9 00:30:44 UTC 2019
#16116: Explicit foralls in associated type family equations are oblivious to
class-bound variables
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Actually this check -- that variables on the RHS are bound on the LHS --
is performed by `TcValidity.checkFamPatBinders`. So I think it can
simply be deleted here. It's hard to do correctly because of the implicit
kind binders etc.
Can you try simply deleting it?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16116#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list