[Haskell-cafe] Just for a laugh...

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Jun 1 06:07:30 EDT 2007


Hello Andrew,

Thursday, May 31, 2007, 11:47:28 PM, you wrote:
> (Otherwise... wasn't there some library somewhere for serialising values
> in binary?)

Binary, AltBinary (see latest HCAR), just an example using AltBinary:

main = do
          let s = encode (1.1::Float)  -- s has type String
          print (decode s::Float, s)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list