On 10/4/11 12:02 PM, Karel Gardas wrote:

Hello,

I'm trying to find out if it's possible to use Haskell data type
definition capability to define types and compile defined types into
other languages, for example into Google's protocol buffers data
definition language. So basically speaking I'm thinking about using
Haskell sub-set as a data-definition DSL together with some functions
which will generate some code based on supplied defined data types. My
idea is:

If your main goal is to use protocol buffers in Haskell, then I'd recommend checking out Chris Kuklewicz's packages: hprotoc, protocol-buffers, protocol-buffers-descriptor.

If your main goal is actually to have a DSL, well, the other folk's comments about generic programing techniques should help.

--
Live well,
~wren

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to