[GHC] #1338: base package breakup

GHC trac at galois.com
Tue Aug 25 11:35:16 EDT 2009


#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):

 Replying to [comment:29 mokus]:
 > Would it be possible to implement at least as much of this splitting as
 is needed to remove all "unsafe" operations from base?

 Unfortunately, this isn't as easy as you might expect. Exceptions require
 `Typeable`, which uses `unsafePerformIO` and `IORef`, which is enough to
 allow you to both `unsafePerformIO` (obviously) and `unsafeCoerce`.

 Of course, you could make them not be exported, but that's not as nice as
 them being completely absent.

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


More information about the Glasgow-haskell-bugs mailing list