diff options
author | Jade Lovelace <jadel@mercury.com> | 2022-08-11 13:50:17 -0700 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-09-28 17:49:49 -0400 |
commit | b0c89dfaf9f8aeda9dd69a9583fd29150099aa27 (patch) | |
tree | a1657f86a2f5b8f95fb3354d036a2d2366693d37 | |
parent | 7be6f9a459b2fb0cdf7d1d26a373f7d4f89f7499 (diff) | |
download | haskell-b0c89dfaf9f8aeda9dd69a9583fd29150099aa27.tar.gz |
Export OnOff from GHC.Driver.Session
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 assume are on because of their
default values.
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.
-rw-r--r-- | compiler/GHC/Driver/Session.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs index 017b8bce20..fcb509f47f 100644 --- a/compiler/GHC/Driver/Session.hs +++ b/compiler/GHC/Driver/Session.hs @@ -41,6 +41,7 @@ module GHC.Driver.Session ( DynamicTooState(..), dynamicTooState, setDynamicNow, sccProfilingEnabled, needSourceNotes, + OnOff(..), DynFlags(..), outputFile, objectSuf, ways, FlagSpec(..), |