[Haskell-cafe] Any generic serializer to String? was: Any
working example of using genericserialize?
golubovsky at gmail.com
Wed Sep 30 23:23:40 EDT 2009
OK, I got it to work with gread/gshow.
However I have noticed this:
*Main> (gread $ gshow $ FuncExpr 0  (EmptyStmt 0)) :: [(Expression
[(FuncExpr 0  (EmptyStmt 0),"")]
*Main> (gread $ gshow $ FuncExpr ()  (EmptyStmt ())) :: [(Expression
Or even narrower:
*Main> (gread $ gshow 1)::[(Int, String)]
*Main> (gread $ gshow ())::[((), String)]
that is, the unit type does not work well with gread/gshow, likely
because inner parentheses are not parsed as a constructor.
*Main> gshow ()
Is this a known bug?
On Wed, Sep 30, 2009 at 10:19 AM, Dimitry Golubovsky
<golubovsky at gmail.com> wrote:
> 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
Anywhere on the Web
More information about the Haskell-Cafe