#3447: Class restrictions on type instances
---------------------------------+------------------------------------------
    Reporter:  LysikovVV         |        Owner:                  
        Type:  feature request   |       Status:  new             
    Priority:  normal            |    Milestone:  6.14.1          
   Component:  Compiler          |      Version:  6.10.4          
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by simonpj):

 The right thing seems to be to make `BoolT (NotT a)` a superclass, thus:
 {{{
 class BoolT (NotT a) => BoolT a where
    type NotT a
 }}}
 This is legal with `-XFlexibleContexts`.  Perhaps you can see if that
 serves your purpose?

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3447#comment:2>
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