[jhc] support for imported doubles/floats?

John Meacham john at repetae.net
Mon Aug 17 20:00:45 EDT 2009


On Tue, Aug 18, 2009 at 09:35:53AM +1000, Mark Wotton wrote:
>> Actually in jhc, it is guarenteed that Double and Float marshall to  
>> the
>> C 'double' and 'float' types repsectively, so using those is probably
>> fine for now. Some of the numeric types arn't filled out beacuse
>> 'newtype deriving' would make doing so a lot nicer (and more  
>> efficient)
>> and it isn't working in jhc yet.
>
> So does that require JHC code changes, or is there a workaround I can  
> deploy in the code to be compiled?

Both :), just use 'Double' and 'Float' instead of CDouble and CFloat for
now, I'll add proper instances for CDouble and CFloat at some point at
which point you can use them.

        John

-- 
John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/


More information about the jhc mailing list