We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd20313 commit 9d45637Copy full SHA for 9d45637
plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Util.hs
@@ -1,5 +1,6 @@
1
{-# LANGUAGE NoMonomorphismRestriction #-}
2
{-# LANGUAGE ScopedTypeVariables #-}
3
+{-# LANGUAGE TypeApplications #-}
4
{-# LANGUAGE CPP #-}
5
{-# OPTIONS_GHC -Wno-orphans -Wno-unused-imports #-}
6
@@ -90,7 +91,12 @@ showErr e =
90
91
Just (SourceError msgs) -> return $ Left $ renderWithContext defaultSDocContext
92
$ vcat
93
$ bagToList
- $ fmap (vcat . unDecorated . diagnosticMessage . errMsgDiagnostic)
94
+ $ fmap (vcat . unDecorated
95
+ . diagnosticMessage
96
+#if MIN_VERSION_ghc(9,5,0)
97
+ (defaultDiagnosticOpts @GhcMessage)
98
+#endif
99
+ . errMsgDiagnostic)
100
$ getMessages msgs
101
_ ->
102
#endif
0 commit comments