Re: [Haskell-cafe] Haskell2Xml - Suggest looking at HXT

2009-08-11 Thread Dmitry Olshansky
Hi Max, thanks for your suggestion. I also have a not pretty code which used Text.XML.Light and TH. I am going to rewrite it. HXT by my opinion is too big. The question is a requirements. Which correlations exist between Haskell types and XML-Schema possibilities? How to prepare XML for different

Re: [Haskell-cafe] Haskell2Xml - Suggest looking at HXT

2009-08-08 Thread Max Cantor
Hi Dmitry, I've been using HXT and its XmlPickler class for encoding and decoding between XML - Haskell types. It takes a while to wrap your brain around the arrows based API for HXT (something I'm still working on) but it seems to be quite powerful and well maintained. Also, I've

Re: [Haskell-cafe] Haskell2Xml

2009-08-07 Thread Dmitry Olshansky
Like in Keith proposal I need it for working with web-services, maybe Xml transformations and so on. And I tried to make it by self with a partial success. To work with xml I only used xml package (Text.XML.Light). Now I am going to work a little (?) on this task to provide more standard and

Re: [Haskell-cafe] Haskell2Xml

2009-08-07 Thread John Lask
it would be to migrate over to vanilla haskell+generics is another question - Original Message - From: Dmitry Olshansky To: Haskell cafe Sent: Friday, August 07, 2009 7:31 PM Subject: Re: [Haskell-cafe] Haskell2Xml Like in Keith proposal I need it for working with web-services

Re: [Haskell-cafe] Haskell2Xml

2009-08-07 Thread John Lask
link to paper: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.1.7362 - Original Message - From: Dmitry Olshansky To: Haskell cafe Sent: Friday, August 07, 2009 7:31 PM Subject: Re: [Haskell-cafe] Haskell2Xml Like in Keith proposal I need it for working with web

Re: [Haskell-cafe] Haskell2Xml

2009-08-07 Thread Sean Leather
On Fri, Aug 7, 2009 at 12:05, John Lask jvl...@hotmail.com wrote: the paper: Scripting XML with Generic Haskell Frank Atanassow, Dave Clarke and Johan Jeuring October 14, 2003 describes a translation from XML Schema to Haskell data types (like dtd2haskell) in generic haskell, I believe

Re: [Haskell-cafe] Haskell2Xml

2009-08-07 Thread Dmitry Olshansky
Well, great thanks for interesting links. But definitely at first I need a time to try to understand what Generic Haskell and EMGM are. Does it stronger than Template Haskell? Could it be explained briefly and simplistic for first impression? Could it be compared with SYB or TH? Would it be

Re[2]: [Haskell-cafe] Haskell2Xml

2009-08-07 Thread Bulat Ziganshin
Hello Dmitry, Friday, August 7, 2009, 3:04:37 PM, you wrote: generic programming in haskell generally means SYB-like things and Generic Haskell (at least i have read description of) was a extended version of Haskell with built-in support for generic programming. i.e. those type-specific

Re: [Haskell-cafe] Haskell2Xml

2009-08-07 Thread Sean Leather
Hi Dmitry, Well, great thanks for interesting links. But definitely at first I need a time to try to understand what Generic Haskell and EMGM are. Generic Haskell (GH) is a language extension implementing datatype-generic programming features on top of Haskell. It is implemented using a

Re: [Haskell-cafe] Haskell2Xml

2009-08-06 Thread Jason Dagit
On Wed, Aug 5, 2009 at 5:10 PM, Keith Sheppard keiths...@gmail.com wrote: Hello Dmitry, I too was looking for something like this and came up empty. I proposed something similar on the haskell_proposals reddit... http://www.reddit.com/r/haskell_proposals/comments/8zhkx/haxb_and_haxws/ ...

[Haskell-cafe] Haskell2Xml

2009-08-05 Thread Dmitry Olshansky
Hello all, I need a convenient tool to generate Haskell types from XML W3C Schema Definition (xsd) and vice versa - generate instances for Haskell ADT's to make corresponding XML. It is just the same that HaXml do with DTD. I need - using XSD - support for unicode - using xml-attributes as far as

Re: [Haskell-cafe] Haskell2Xml

2009-08-05 Thread Keith Sheppard
Hello Dmitry, I too was looking for something like this and came up empty. I proposed something similar on the haskell_proposals reddit... http://www.reddit.com/r/haskell_proposals/comments/8zhkx/haxb_and_haxws/ ... but I was left with the impression that there isn't much interest. -Keith On