diagnose 2.3.0 → 2.3.1
raw patch · 2 files changed
+3/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
diagnose.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: diagnose-version: 2.3.0+version: 2.3.1 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/Internal.hs view
@@ -69,8 +69,8 @@ -- | Checks whether the given diagnostic has any report or not (if it is effectively empty). hasReports :: Diagnostic msg -> Bool-hasReports (Diagnostic DL.Nil _) = True-hasReports _ = False+hasReports (Diagnostic DL.Nil _) = False+hasReports _ = True -- | Transforms every warning report in this diagnostic into an error report. warningsToErrors :: Diagnostic msg -> Diagnostic msg