[Haskell] How to get the binary respentation of the Int/Double.

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Tue Oct 28 13:08:18 EDT 2008


On 2008 Oct 28, at 10:38, haihualin wrote:
> I am wondering how to get the binary respentation of the Int/Double.
> So I can save the integer as the binary data so that the C program  
> can read it from the file.


The Binary package on Hackage (http://hackage.haskell.org) allows you  
to serialize Haskell data in any form including C-compatible binary  
output.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the Haskell mailing list