[Haskell-cafe] question about Data.Binary and Double instance

David Roundy droundy at darcs.net
Sun Apr 22 19:52:08 EDT 2007


On Sun, Apr 22, 2007 at 10:36:17PM +0100, Ian Lynagh wrote:
> On Wed, Apr 18, 2007 at 09:12:30PM -0700, David Roundy wrote:
> > I just want to read in a file full of Doubles (written in binary format
> > from C++)
> 
> Note that if you write double's from C++ then you need to read CDoubles
> in Haskell and then realToFrac them (which will presumably be optimised
> out in practice).

This is a one-off script, which doesn't need to be portable.  Or, it would
have been, if I hadn't written it in perl and octave.
-- 
David Roundy
http://www.darcs.net


More information about the Haskell-Cafe mailing list