Challenge: FeatureFlag pure functions

I want a better solution.
Hence there is a better solution.

Your challenge seems to resemble the “interesting” use of GHC’s feature flags:

…which is slowly being remediated.

Otherwise:

…perhaps something there can be reused for your purposes.