diagnose 1.6.3 → 1.6.4
raw patch · 3 files changed
+11/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +7/−0
- diagnose.cabal +1/−1
- src/Error/Diagnose/Position.hs +3/−0
README.md view
@@ -98,6 +98,13 @@ More examples are given in the [`test/rendering`](./test/rendering) folder. +## TODO list++- Handle variable-width characters such as tabs or some unicode characters++ For tabs, we may just resort to having the user fix a given number of+ spaces in the `printDiagnostic` function.+ ## License This work is licensed under the BSD-3 clause license.
diagnose.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: diagnose-version: 1.6.3+version: 1.6.4 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/Position.hs view
@@ -31,6 +31,9 @@ -- > data Located a -- > = a :@ Position -- > deriving (Show, Eq, Ord, Functor, Traversable)+--+-- Columns are specified in amount of Unicode codepoints from the beginning of the line.+-- Lines and columns start at 1. data Position = Position { -- | The beginning line and column of the span. begin :: (Int, Int),