Export OnOff from GHC.Driver.Session
Thank you for your contribution to GHC!
Please take a few moments to verify that your commits fulfill the following:
-
are either individually buildable or squashed -
have commit messages which describe what they do (referring to [Notes][notes] and tickets using #NNNN
syntax when appropriate) -
have added source comments describing your change. For larger changes you likely should add a [Note][notes] and cross-reference it from the relevant places.
I was working on fixing an issue where HLS was trying to pass its DynFlags to HLint, but didn't pass any of the disabled language extensions, which HLint would then incorrectly assume are on because of their default values.
(issue link if you're interested: https://github.com/haskell/haskell-language-server/issues/3095)
Currently it's not possible to get any of the "No" flags because the
DynFlags.extensions
field can't really be used since it is [OnOff Extension]
and OnOff is not exported.
So let's export it.