Control GHC build options from environment variable using Cabal (Haskell) If you only have on/off flags, you should use Cabal flags.