Cabal-1.18 compatibility, with ideas from Ben Gamari and Oliver Batchelor
FlexibleInstances is no longer needed in SetupWrapper