[GHC] #1037: primRepHint:VoidRep
GHC
trac at galois.com
Mon Dec 4 08:14:56 EST 2006
#1037: primRepHint:VoidRep
----------------------------+-----------------------------------------------
Reporter: igloo | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.8
Component: Compiler (FFI) | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------------+-----------------------------------------------
Comment (by igloo):
The time this sort of stuff is desirable is when you want to return
unboxed values
in the IO monad, as you can't have an IO Char# type.
However, the optimiser will currently eliminate the boxing done by the
generated import wrapper and the unboxing done in the Haskell code that
uses the import.
So it's not vital that this is done, but it would mean people don't have
to rely on the optimiser always catching this sort of thing. It is only
useful if you are writing (or generating) very low level stuff, though.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1037>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list