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.
maybe
1 parent 25b02fa commit a46f0a2Copy full SHA for a46f0a2
ghcide/src/Development/IDE/Types/Diagnostics.hs
@@ -68,7 +68,9 @@ ideErrorFromLspDiag
68
ideErrorFromLspDiag lspDiag fdFilePath origMsg =
69
let fdShouldShowDiagnostic = ShowDiag
70
fdStructuredMessage =
71
- maybe NoStructuredMessage SomeStructuredMessage origMsg
+ case origMsg of
72
+ Nothing -> NoStructuredMessage
73
+ Just msg -> SomeStructuredMessage msg
74
fdLspDiagnostic = lspDiag
75
{ _code = fmap ghcCodeToLspCode . diagnosticCode . errMsgDiagnostic =<< origMsg
76
}
0 commit comments