As the interface to TH generation of lenses has changed twice un 4.*, and we need to support them all, we need to differentiate the code according the actual lens version.
The first patch is only for 2.12 and 2.13. In 2.14 it should be removed in favor of macros generated by cabal. Petr Pudlak (2): Create a simple CPP macro for detecting lens versions Construct lenses correctly for different 'lens' versions Makefile.am | 26 +++++++++++++++++++------- src/Ganeti/Lens.hs | 25 ++++++++++++++++++++++--- 2 files changed, 41 insertions(+), 10 deletions(-) -- 2.2.0.rc0.207.ga3a616c
