Skip to content

Commit 9d45637

Browse files
committed
fixes
1 parent cd20313 commit 9d45637

File tree

1 file changed

+7
-1
lines changed
  • plugins/hls-eval-plugin/src/Ide/Plugin/Eval

1 file changed

+7
-1
lines changed

plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Util.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{-# LANGUAGE NoMonomorphismRestriction #-}
22
{-# LANGUAGE ScopedTypeVariables #-}
3+
{-# LANGUAGE TypeApplications #-}
34
{-# LANGUAGE CPP #-}
45
{-# OPTIONS_GHC -Wno-orphans -Wno-unused-imports #-}
56

@@ -90,7 +91,12 @@ showErr e =
9091
Just (SourceError msgs) -> return $ Left $ renderWithContext defaultSDocContext
9192
$ vcat
9293
$ bagToList
93-
$ 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)
94100
$ getMessages msgs
95101
_ ->
96102
#endif

0 commit comments

Comments
 (0)