#1338: base package breakup
---------------------------------+------------------------------------------
    Reporter:  simonmar          |        Owner:                  
        Type:  task              |       Status:  new             
    Priority:  normal            |    Milestone:  6.12 branch     
   Component:  libraries/base    |      Version:  6.6.1           
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by igloo):

 Although it looks, from the source, like the IO part of `Data.Typeable`
 should be able to be split off from the `Typeable` classes etc, this is
 sadly not the case.

 Right down at the bottom of the module hierarchy we have
 {{{
 error s = throw (ErrorCall s)
 }}}
 which needs `ErrorCall` to have a `Typeable` instance. Although in the
 source this is just `deriving Typeable`, the generated code calls
 `mkTyCon`, which calls `mkTyConKey`, which does IO (hidden by
 `unsafePerformIO`).

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