Split OpCode.hs and add module for opcode parameters
authorIustin Pop <iustin@google.com>
Tue, 13 Nov 2012 15:37:31 +0000 (16:37 +0100)
committerIustin Pop <iustin@google.com>
Tue, 20 Nov 2012 09:16:34 +0000 (10:16 +0100)
commit92f515730693e9c898992bf3a2a828834c736ec5
tree6102839536bfd51b635d7a127f43a04d1dd846ce
parent5e9deac02b1d89c1eea02e9e150649f3eec9dc80
Split OpCode.hs and add module for opcode parameters

Due to TemplateHaskell stage restrictions, we can't define parameters
in the same module as we're using them for TH, so we have to define
all module parameters in a separate module.

This patch therefore splits OpCodes.hs in two, adding that module and
moves most code there (types, parameters, etc.). The remaining parts
in OpCodes.hs, the actual opcode definitions, now use more parameters
instead of direct field definitions (more will come later)

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Adeodato Simo <dato@google.com>
Makefile.am
htools/Ganeti/OpCodes.hs
htools/Ganeti/OpParams.hs [new file with mode: 0644]