[GHC] #10722: GHC accepts "instance forall b. Blah []"

GHC ghc-devs at haskell.org
Mon Aug 3 12:26:23 UTC 2015


#10722: GHC accepts "instance forall b. Blah []"
-------------------------------------+-------------------------------------
        Reporter:  osa1              |                   Owner:
            Type:  bug               |                  Status:  closed
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.11
      Resolution:  invalid           |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  GHC accepts       |  Unknown/Multiple
  invalid program                    |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by Simon Peyton Jones <simonpj@…>):

 In [changeset:"d7ced09a0a8d9e0f3c6631e2814078145036c90a/ghc"
 d7ced09a/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="d7ced09a0a8d9e0f3c6631e2814078145036c90a"
 Minor improvement to user guide

 Specify that the type variables for a class/instance decl scope
 over the body even without a 'forall'.

 Provoked by Trac #10722.
 }}}

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


More information about the ghc-tickets mailing list