[Haskell-cafe] Data.List / Map: simple serialization?

Yves Parès limestrael at gmail.com
Thu Jun 9 09:41:21 CEST 2011

Binary should be pretty easy to use (and more advisable if you need
performance), since it defines the Binary instance for every basic type,
including of course Map.
I don't know about cereal, but I suppose it will be pretty much the same.
The major difference is that binary offers lazy serialization while cereal
is strict.

2011/6/9 Ivan Lazar Miljenovic <ivan.miljenovic at gmail.com>

> On 9 June 2011 17:23, Dmitri O.Kondratiev <dokondr at gmail.com> wrote:
> > Hello,
> > Please advise on existing serialization libraries.
> > I need a simple way to serialize Data.List and Data.Map  to plain text
> > files.
> Well, the obvious solution is to just use show and read... though if
> you want something more efficient, have a look at binary and cereal on
> Hackage.
> --
> Ivan Lazar Miljenovic
> Ivan.Miljenovic at gmail.com
> IvanMiljenovic.wordpress.com
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110609/aa52432f/attachment-0001.htm>

More information about the Haskell-Cafe mailing list