[GHC] #12174: Recursive use of type-in-type results in infinite loop

GHC ghc-devs at haskell.org
Sun Jun 26 08:00:07 UTC 2016


#12174: Recursive use of type-in-type results in infinite loop
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:  goldfire
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1
  checker)                           |
      Resolution:                    |             Keywords:  TypeInType
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 fumieval):

 Probably a similar issue:

 {{{

 {-# LANGUAGE TypeInType #-}

 import Data.Proxy

 data A a = A (Proxy (a :: A))

 }}}

 results in `*** Exception: stack overflow`

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


More information about the ghc-tickets mailing list