tfausak / purple-yolk

:hatching_chick: A Haskell IDE for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=taylorfausak.purple-yolk
MIT License
26 stars 2 forks source link

Diagnostic code missing for newer GHCs #64

Closed tfausak closed 2 months ago

tfausak commented 2 months ago

Newer GHCs don't emit the reason field anymore:

https://github.com/tfausak/purple-yolk/blob/8124f8a55d72f9b29c2336f4e5979ddf4571d3f8/source/client.ts#L751-L753

Instead the messageClass will include something like Opt_WarnDuplicateExports, which corresponds to -Wduplicate-exports. The mapping comes from here:

https://hackage.haskell.org/package/ghc-9.8.2/docs/GHC-Driver-Flags.html#v:warnFlagNames