[GHC] #16315: Pattern synonym implicit existential quantification

GHC ghc-devs at haskell.org
Fri Feb 15 15:34:41 UTC 2019


#16315: Pattern synonym implicit existential quantification
-------------------------------------+-------------------------------------
        Reporter:  int-index         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.6.3
      Resolution:                    |             Keywords:
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):

 You have a red herring in your soup.

 The following snippet is also accepted:

 {{{#!hs
 pattern P :: forall. () => forall k (a :: k). Proxy a -> T
 pattern P x = MkT (x :: Proxy (b :: j))
 }}}

 There's no scoping going on here, just the fact that these type variables
 are unconstrained.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16315#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list