diagnose 1.8.2 → 1.9.0
raw patch · 3 files changed
+8/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Error.Diagnose.Diagnostic: prettyDiagnostic :: Pretty msg => Bool -> Int -> Diagnostic msg -> Doc AnsiStyle
Files
- diagnose.cabal +1/−1
- src/Error/Diagnose/Diagnostic.hs +1/−0
- src/Error/Diagnose/Diagnostic/Internal.hs +6/−2
diagnose.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: diagnose-version: 1.8.2+version: 1.9.0 synopsis: Beautiful error reporting done easily description: This package provides a simple way of getting beautiful compiler/interpreter errors using a very simple interface for the programmer.
src/Error/Diagnose/Diagnostic.hs view
@@ -21,6 +21,7 @@ addFile, addReport, def,+ prettyDiagnostic, printDiagnostic, ) import System.IO as Export (stderr, stdout)
src/Error/Diagnose/Diagnostic/Internal.hs view
@@ -63,8 +63,12 @@ ] #endif --- | Pretty prints a diagnostic into a 'Doc'ument that can be output using--- 'Text.PrettyPrint.ANSI.Leijen.hPutDoc' or 'Text.PrettyPrint.ANSI.Leijen.displayIO'.+-- | Pretty prints a 'Diagnostic' into a 'Doc'ument that can be output using 'hPutDoc'.+--+-- Colors are put by default.+-- If you do not want these, just 'unAnnotate' the resulting document like so:+--+-- >>> let doc = unAnnotate (prettyDiagnostic withUnicode tabSize diagnostic) prettyDiagnostic :: Pretty msg => -- | Should we use unicode when printing paths?