Hi Dimitry,
On Thu, Oct 1, 2009 at 05:23, Dimitry Golubovsky golubov...@gmail.comwrote:
OK, I got it to work with gread/gshow.
However I have noticed this:
*Main (gread $ gshow $ FuncExpr 0 [] (EmptyStmt 0)) :: [(Expression
Int, String)]
[(FuncExpr 0 [] (EmptyStmt 0),)]
vs.
*Main
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
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.zigans...@gmail.com wrote:
Hello Max,
Wednesday, September 30, 2009, 5:53:37 PM, you wrote:
afaik, SYB just provides gshow/gread
OK, I got it to work with gread/gshow.
However I have noticed this:
*Main (gread $ gshow $ FuncExpr 0 [] (EmptyStmt 0)) :: [(Expression
Int, String)]
[(FuncExpr 0 [] (EmptyStmt 0),)]
vs.
*Main (gread $ gshow $ FuncExpr () [] (EmptyStmt ())) :: [(Expression
(), String)]
[]
Or even narrower: