Add 'Read' instances for most objects
authorIustin Pop <iustin@google.com>
Tue, 28 Dec 2010 09:27:41 +0000 (10:27 +0100)
committerIustin Pop <iustin@google.com>
Thu, 30 Dec 2010 13:41:44 +0000 (14:41 +0100)
commit6bc3997090f4d390047f228c7e82eefb46b3a0cf
treefb3589797d211b19839a3290b5450485dc241180
parent6eaa7bb88a42abed08499bd935bd66bba5a35410
Add 'Read' instances for most objects

This allows a cluster structure to be easily serialized via "read";
together with the already existing instances of Show, this gives a
poor man's serialization/deserialization implementation.

The patch also exports the compDetailedCV function from Cluster.hs, so
that it can be used by other modules too.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Ganeti/HTools/Cluster.hs
Ganeti/HTools/Group.hs
Ganeti/HTools/Instance.hs
Ganeti/HTools/Loader.hs
Ganeti/HTools/Node.hs
Ganeti/HTools/Types.hs
Ganeti/Jobs.hs
Ganeti/Luxi.hs
Ganeti/OpCodes.hs