on master help sign in
hie-core: Remove code pretty printing from diagnostic output (#2810)

In moving from v. 0.15 to 0.16, haskell-lsp changed the type of the value which ended up being passed to `pretty` from `Maybe Text` to `Maybe LSP.NumberOrString`, thereby breaking the line of code which is removed in this commit. After discussion with @ndmitchell, it was observed that this code was never useful, and fixing it was not worth the trouble.

commit7e31d3e56099993944673d26a07b1c89738e0b02 authorjacg <jacg@my-post-office.net> dateSun 8 Sep 2019, 18:04 (7 years ago) parent52b745c
1 file changed−1
src/Development/IDE/Types/Diagnostics.hs−1
src/Development/IDE/Types/Diagnostics.hs−1
@@ -80,7 +80,6 @@ prettyDiagnostic (fp, LSP.Diagnostic{..}) =
8080 LSP.DsInfo -> annotate $ color Blue
8181 LSP.DsHint -> annotate $ color Magenta
8282 $ stringParagraphs _message
83− , slabel_ "Code:" $ pretty _code
8483 ]
8584 where
8685 sev = fromMaybe LSP.DsError _severity