[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-cafe
Subject:    Re: Re[2]: [Haskell-cafe] Any generic serializer to String? was: Any
From:       Dimitry Golubovsky <golubovsky () gmail ! com>
Date:       2009-09-30 14:19:59
Message-ID: bcba51a0909300719p31728146qed3fd1e4ade34d28 () mail ! gmail ! com
[Download RAW message or body]

Bulat,

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

Thanks.

On 9/30/09, Bulat Ziganshin <bulat.ziganshin@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
[skip]
-- 
Dimitry Golubovsky

Anywhere on the Web
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic