[Haskell-cafe] Any generic serializer to String? was: Any working example of using genericserialize?

Dimitry Golubovsky golubovsky at gmail.com
Wed Sep 30 10:19:59 EDT 2009


OK, gread/gshow seem to be like the basis primitives. If they work
properly, then it is what is needed.


On 9/30/09, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
> Hello Max,
> Wednesday, September 30, 2009, 5:53:37 PM, you wrote:
> afaik, SYB just provides gshow/gread functions what serialize any Data
> instance to String
> > FWIW, writing your own is not hard. I wrote a serializer for GHC using
> > Data in less than 150 (simple) LOC. It produces [Word8], but producing
> > strings instead would be easy. You can check out the code here:
> > http://darcs.haskell.org/ghc/compiler/utils/Serialized.hs
> > Cheers,
> > Max
Dimitry Golubovsky

Anywhere on the Web

More information about the Haskell-Cafe mailing list