Commit Graph

126 Commits

Author SHA1 Message Date
Mesabloo
faeeabe34d diagnose: remove unneeded 'ToJSON' overlapping instances 2021-08-16 20:23:15 +02:00
Mesabloo
ffcb266e35 diagnose: quickly document how to use the library 2021-08-16 14:14:43 +02:00
Mesabloo
d1c9ae8077 diagnose: allow exporting a diagnostic as a JSON string 2021-08-16 00:00:54 +02:00
Mesabloo
4df5053c32 stack: pin dependencies versions 2021-08-15 22:45:14 +02:00
Mesabloo
d81c9d6e10 diagnose: create a simple to show-off the library 2021-08-15 20:52:52 +02:00
Mesabloo
402bb22274 diagnose: rewrite the whole library 2021-08-15 20:44:04 +02:00
Mesabloo
00de50a0d0 diagnose: remove everything 2021-08-12 20:16:25 +02:00
Mesabloo
76e2e88430 stack: bump to latest LTS 2021-08-12 20:14:09 +02:00
Mesabloo
c6223edb04 report: always show the file on a new line
This was not the case when the error message was small
2021-03-20 11:52:22 +01:00
Mesabloo
58d3c667ca report: show error on next line if marker is too long 2021-01-25 11:19:15 +01:00
Mesabloo
d6839dc8f9 diagnostic: store the max spanning width 2021-01-25 11:19:00 +01:00
Mesabloo
559ade8c48 diagnostic: resolve ambiguity when checking for empty diagnostics 2020-11-18 19:42:20 +01:00
Mesabloo
5b96ec360b diagnostic: do not even try to display something on empty diagnostic 2020-11-18 19:39:53 +01:00
Mesabloo
9604a8a695 report: show error on next line if marker is too long 2020-11-18 19:37:25 +01:00
Mesabloo
47f4517b25 diagnostic: print nothing if the diagnostic is empty 2020-11-18 19:16:58 +01:00
Mesabloo
cf64944304 report: safely access files and lines when printing a report 2020-11-11 14:46:22 +01:00
Mesabloo
fbb1577c6d Diagnostic: allow printing without colors 2020-09-24 20:45:46 +02:00
Mesabloo
a4d52a8b1c Report: remove duplicates when appending two reports 2020-09-14 22:20:21 +02:00
Mesabloo
3937b074c9
Report: improve custom pretty printer to handle new lines 2020-09-14 18:18:51 +02:00
Mesabloo
e977c7ba6a Report: better render multiline error messages 2020-09-11 12:44:17 +02:00
Mesabloo
fe1f0ee0cc Report: fix Semigroup instance ignoring markers on the same position 2020-09-11 12:44:01 +02:00
Mesabloo
a5d5c25d8b Report: add Semigroup and Monoid instances 2020-09-11 08:45:12 +02:00
Mesabloo
7578416b72 report: fix align issue with multiple hints 2020-08-30 17:25:14 +02:00
Mesabloo
caa37da065 Update cabal file 2020-08-21 12:55:42 +02:00
Mesabloo
cc095f8c63 Remove unused "Setup.hs" file 2020-08-21 12:53:34 +02:00
Mesabloo
0d971cd667 Import all from https://github.com/Mesabloo/nihil 2020-08-21 12:40:14 +02:00