[Haskell-cafe] combined parsing & pretty-printing

Steffen Schuldenzucker sschuldenzucker at uni-bonn.de
Wed Jan 26 18:04:47 CET 2011


On 01/26/2011 05:22 PM, Ozgur Akgun wrote:
> I working on a DSL represented by a algebraic data type with many 
> constructors. I can write (separately) a parser and a pretty-printer 
> for it, and I am doing so at the moment. However, this way it feels 
> like repeating the same information twice.
>
> Is there any work to combine the two?

You might want to take a look at [1, 2]XML Picklers from [3]HXT.

Steffen

[1] 
http://www.haskell.org/haskellwiki/HXT/Conversion_of_Haskell_data_from/to_XML
[2] http://blog.typlab.com/2009/11/writing-a-generic-xml-pickler/
[3] http://hackage.haskell.org/package/hxt-9.0.1

>
> Best,
> Ozgur
>
>
> _______________________________________________
> 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/20110126/cf54e25b/attachment.htm>


More information about the Haskell-Cafe mailing list