[GHC] #10991: Don't permit type variables in the context unless they are in the type

GHC ghc-devs at haskell.org
Tue Oct 20 11:50:30 UTC 2015


#10991: Don't permit type variables in the context unless they are in the type
-------------------------------------+-------------------------------------
        Reporter:  bernalex          |                Owner:  bernalex
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC accepts       |  Unknown/Multiple
  invalid program                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bernalex):

 Interesting. It seems to only accept the ill-typed code in GHCi.
 {{{
 λ let f :: Eq a => b -> b; f b = b
 λ :t f
 f :: b -> b
 }}}

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


More information about the ghc-tickets mailing list