summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJade Lovelace <jadel@mercury.com>2022-08-11 13:50:17 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-09-28 17:49:49 -0400
commitb0c89dfaf9f8aeda9dd69a9583fd29150099aa27 (patch)
treea1657f86a2f5b8f95fb3354d036a2d2366693d37
parent7be6f9a459b2fb0cdf7d1d26a373f7d4f89f7499 (diff)
downloadhaskell-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.hs1
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(..),