[GHC] #8137: Permited mega-polymorphic type

GHC ghc-devs at haskell.org
Fri Aug 16 04:48:31 CEST 2013


#8137: Permited  mega-polymorphic type
------------------------------------------------+--------------------------
        Reporter:  wvv                          |            Owner:
            Type:  bug                          |           Status:  closed
        Priority:  normal                       |        Milestone:
       Component:  Compiler (Type checker)      |          Version:  7.6.3
      Resolution:  invalid                      |         Keywords:
Operating System:  Unknown/Multiple             |     Architecture:
 Type of failure:  GHC accepts invalid program  |  Unknown/Multiple
       Test Case:                               |       Difficulty:
        Blocking:                               |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:
------------------------------------------------+--------------------------

Comment (by goldfire):

 In the scenario in your comment above, the type `t1` must be a sub-part of
 the type `t1`, which is only possible with infinite types. In the original
 case in the bug report, we get the equation `t = t`, where `t` is the type
 of `u`, which is satisfiable for any type.

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




More information about the ghc-tickets mailing list