Commit Graph

156 Commits

Author SHA1 Message Date
Mesabloo
b9ab7180e5 report: fix alignment when rendering multiline markers after inline ones 2022-01-19 16:09:35 +01:00
Mesabloo
973dcd8d28 report: create Semigroup & Monoid instances 2022-01-19 10:18:29 +01:00
Mesabloo
63bec43b9c pretty: re-export Prettyprinter 2022-01-19 09:14:57 +01:00
Mesabloo
3be8f121e8 pretty: re-export prettyprinting combinators 2022-01-19 08:56:54 +01:00
Mesabloo
11ea54abb5 pretty: re-export Prettyprinter in a special module 2022-01-19 08:37:56 +01:00
Mesabloo
28943491a2 diagnose: switch to version v1.5.0 2022-01-02 17:08:03 +01:00
Mesabloo
6577b3e2b5 doc: document compatibility layer for parsec 2022-01-02 17:07:23 +01:00
Mesabloo
3ef417a6e4 hie: add additional test component 2022-01-02 17:07:04 +01:00
Mesabloo
e898e06ba7 parsec: create compatibility layer 2022-01-02 16:50:26 +01:00
Mesabloo
04b9499612 doc: document usage of the megaparsec compatibility layer 2022-01-02 15:23:43 +01:00
Mesabloo
cbf4c19136 *: fix documentation 2022-01-02 14:47:59 +01:00
Mesabloo
d4b227bdc9 diagnose: switch to version v1.4.2 2022-01-02 14:35:24 +01:00
Mesabloo
eaf7decfcd test: remove unused import 2022-01-02 14:34:53 +01:00
Mesabloo
72626a9804 megaparsec: re-export needed modules in compatibility layer directly 2022-01-02 14:34:36 +01:00
Mesabloo
7035713161 hie: add additional test component 2022-01-02 14:32:51 +01:00
Mesabloo
cc084a31be diagnose: switch to version v1.4.1 2022-01-02 14:20:21 +01:00
Mesabloo
e244ec5b0a reports: fix ordering when choosing marker color 2022-01-02 14:19:56 +01:00
Mesabloo
d6c9242102 diagnose: switch to version v1.4.0 2022-01-02 13:59:55 +01:00
Mesabloo
97c3235bec megaparsec: test compabitility layer 2022-01-02 13:58:07 +01:00
Mesabloo
3937e63775 megaparsec: improve compatibility layer by providing more wrappers 2022-01-02 13:05:45 +01:00
Mesabloo
dfcaa689e9 diagnose: create a megaparsec v9 compatibility layer 2022-01-02 12:25:21 +01:00
Mesabloo
a074b865a7 diagnose: include JSON backend conditionnally (set a flag) 2022-01-02 10:37:13 +01:00
Mesabloo
90e54b58f0 stack: nix support 2022-01-02 10:34:45 +01:00
Mesabloo
3f898e7985
lib: set version to 1.3.0 2022-01-01 20:28:43 +01:00
Mesabloo
3b68aab572 *: switch from ansi-wl-pprint to prettyprinter 2022-01-01 19:31:14 +01:00
Mesabloo
6c1516ebb2 *: fix various warnings 2021-10-30 17:38:29 +02:00
Mesabloo
e2cbf2c3f5 report: show marker in the order they are added 2021-10-30 17:32:28 +02:00
Mesabloo
72bc14f629 report: change arrow to be more appealing 2021-09-26 21:09:30 +02:00
Mesabloo
e5e51fc489 diagnose: fix some warnings 2021-08-16 21:35:39 +02:00
Mesabloo
3e40dc5269 diagnose: switch ti version v1.2.0 2021-08-16 20:25:33 +02:00
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