[GHC] #3387: Provide a CInt instance for unboxed arrays

GHC trac at galois.com
Tue Jul 21 07:17:24 EDT 2009


#3387: Provide a CInt instance for unboxed arrays
---------------------------------+------------------------------------------
    Reporter:  tibbe             |        Owner:                  
        Type:  bug               |       Status:  new             
    Priority:  normal            |    Milestone:                  
   Component:  libraries/base    |      Version:  6.10.4          
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by tibbe):

 The `StorableArray` documentation reads:

 "It is similar to Data.Array.IO.IOUArray but slower. Its advantage is that
 it's compatible with C."

 Is this still true? Also, are `StorableArray`s always allocated on the C
 heap and if so isn't that potentially bad for the GC as it knows nothing
 about their size?

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


More information about the Glasgow-haskell-bugs mailing list