#1145: class instance lost during re-export & packaging
-------------------------------------+--------------------------------------
 Reporter:  conal                    |          Owner:         
     Type:  bug                      |         Status:  new    
 Priority:  normal                   |      Milestone:  6.6.1  
Component:  Compiler (Type checker)  |        Version:  6.6    
 Severity:  normal                   |     Resolution:         
 Keywords:                           |     Difficulty:  Unknown
 Testcase:                           |   Architecture:  Unknown
       Os:  Unknown                  |  
-------------------------------------+--------------------------------------
Comment (by conal):

 My goof.  The import should be just "Interface.TV" (without ".UI").  The
 new TV (version 2.0) only depends on the base, mtl & !DeepArrow packages
 (no longer Phooey, which needs wxHaskell), so I guess you'd just need to
 install [http://haskell.org/haskellwiki/DeepArrow DeepArrow], which is
 small & easy.  (The "UI" module is now
 [http://haskell.org/haskellwiki/GuiTV GuiTV] and re-exports
 "Interface.TV".)

 The corrected Bug.hs:
 {{{
 module Bug where

 import Interface.TV

 -- Required to pick up the FunArr instance for OFun.  GHC bug?
 import Interface.TV.OFun()

 reverseT :: TV KIO (String -> String)
 reverseT = tv (oTitle "reverse" defaultOut) reverse

 revTwice :: TV KIO (String -> String)
 revTwice = reverseT ->| reverseT
 }}}

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