Auto-define a LuxiReq data type
authorIustin Pop <iustin@google.com>
Sat, 5 May 2012 04:18:39 +0000 (06:18 +0200)
committerIustin Pop <iustin@google.com>
Tue, 8 May 2012 10:37:55 +0000 (12:37 +0200)
commit95d0d50277217b48c5e7bca7b2c349aa7b19f280
tree9d08368c936360196939a64c7fbedfb7180da355
parentfae980e503702d4ac673ec56b89595beae18ebb6
Auto-define a LuxiReq data type

We currently auto-generate a LuxiOp data type, which holds the entire
operation (including parameters). However, having a data type just for
the method call would be useful, so let's change THH to also
defineSADT for the Luxi constructors.

Currently I don't know how to match automatically a LuxiReq to its
LuxiOp counterpart (not even sure we need that), so any matching will
remain manual.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
htools/Ganeti/Luxi.hs
htools/Ganeti/THH.hs