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>
Showing
- Ganeti/HTools/Cluster.hs 3 additions, 2 deletionsGaneti/HTools/Cluster.hs
- Ganeti/HTools/Group.hs 1 addition, 1 deletionGaneti/HTools/Group.hs
- Ganeti/HTools/Instance.hs 2 additions, 2 deletionsGaneti/HTools/Instance.hs
- Ganeti/HTools/Loader.hs 3 additions, 3 deletionsGaneti/HTools/Loader.hs
- Ganeti/HTools/Node.hs 1 addition, 1 deletionGaneti/HTools/Node.hs
- Ganeti/HTools/Types.hs 7 additions, 7 deletionsGaneti/HTools/Types.hs
- Ganeti/Jobs.hs 3 additions, 3 deletionsGaneti/Jobs.hs
- Ganeti/Luxi.hs 1 addition, 1 deletionGaneti/Luxi.hs
- Ganeti/OpCodes.hs 3 additions, 3 deletionsGaneti/OpCodes.hs
Loading
Please register or sign in to comment