[Haskell-cafe] Any working example of using genericserialize?

Dimitry Golubovsky golubovsky at gmail.com
Wed Sep 30 06:37:57 EDT 2009


Hi,

I am trying to use the genericserialize package
(http://hackage.haskell.org/package/genericserialize) but cannot get
things working.

While
buildList (sexpSerialize [1, 2, 3])

yields

"(1 2 3)"

as it might be expected, I cannot deserialize it back:

*Main> (withList sexpDeserialize $ buildList (sexpSerialize [1, 2,
3])) :: Maybe [Integer]
Nothing

or

*Main> (withList sexpDeserialize $ buildList (sexpSerialize [1, 2,
3])) :: Maybe [Int]
Nothing

while I would expect at least one of these cases result in Just [1, 2, 3]

What am I missing?

Thanks.

-- 
Dimitry Golubovsky

Anywhere on the Web


More information about the Haskell-Cafe mailing list