Use TemplateHaskell to generate opcode serialisation
authorIustin Pop <iustin@google.com>
Wed, 21 Sep 2011 09:23:04 +0000 (18:23 +0900)
committerIustin Pop <iustin@google.com>
Mon, 3 Oct 2011 09:17:11 +0000 (11:17 +0200)
commit12c19659f588c5a7ca586aaa4dcf5e9c4ad24732
tree2b96bc6139dc064703e37019813e9808fd22e9ab
parent6111e296a8a0e115fe85f3a6b7826164aa2590c8
Use TemplateHaskell to generate opcode serialisation

This replaces the hand-coded opcode serialisation code with
auto-generation based on TemplateHaskell.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Agata Murawska <agatamurawska@google.com>
htools/Ganeti/OpCodes.hs
htools/Ganeti/THH.hs