#5591: Type constructor variables not injective
----------------------------------+-----------------------------------------
    Reporter:  daniel.is.fischer  |       Owner:                         
        Type:  bug                |      Status:  new                    
    Priority:  normal             |   Component:  Compiler (Type checker)
     Version:  7.2.1              |    Keywords:                         
    Testcase:                     |   Blockedby:                         
          Os:  Unknown/Multiple   |    Blocking:                         
Architecture:  Unknown/Multiple   |     Failure:  None/Unknown           
----------------------------------+-----------------------------------------

Comment(by danielo):

 I reduced second example, compiles in 7.0.3, but not in  7.3.20111021.
 Seems a serious shortcoming to me

 {{{

 {-# LANGUAGE GADTs #-}

 data ErrorEff x where
   CatchError :: m a -> ErrorEff (m a)

 fin :: ErrorEff (m a) -> m a
 fin (CatchError h) = h
 }}}

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to