[Git][ghc/ghc][master] Export OnOff from GHC.Driver.Session
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Wed Sep 28 21:50:05 UTC 2022
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
b0c89dfa by Jade Lovelace at 2022-09-28T17:49:49-04:00
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.
- - - - -
1 changed file:
- compiler/GHC/Driver/Session.hs
Changes:
=====================================
compiler/GHC/Driver/Session.hs
=====================================
@@ -41,6 +41,7 @@ module GHC.Driver.Session (
DynamicTooState(..), dynamicTooState, setDynamicNow,
sccProfilingEnabled,
needSourceNotes,
+ OnOff(..),
DynFlags(..),
outputFile, objectSuf, ways,
FlagSpec(..),
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b0c89dfaf9f8aeda9dd69a9583fd29150099aa27
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b0c89dfaf9f8aeda9dd69a9583fd29150099aa27
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20220928/61ccd4e4/attachment-0001.html>
More information about the ghc-commits
mailing list