A simple library for reporting compiler/interpreter errors
Go to file
2022-01-02 13:05:45 +01:00
assets diagnose: create a simple to show-off the library 2021-08-15 20:52:52 +02:00
nix stack: nix support 2022-01-02 10:34:45 +01:00
src megaparsec: improve compatibility layer by providing more wrappers 2022-01-02 13:05:45 +01:00
test diagnose: include JSON backend conditionnally (set a flag) 2022-01-02 10:37:13 +01:00
.gitignore Import all from https://github.com/Mesabloo/nihil 2020-08-21 12:40:14 +02:00
diagnose.cabal diagnose: create a megaparsec v9 compatibility layer 2022-01-02 12:25:21 +01:00
hie.yaml diagnose: rewrite the whole library 2021-08-15 20:44:04 +02:00
LICENSE Import all from https://github.com/Mesabloo/nihil 2020-08-21 12:40:14 +02:00
package.yaml diagnose: create a megaparsec v9 compatibility layer 2022-01-02 12:25:21 +01:00
README.md diagnose: create a simple to show-off the library 2021-08-15 20:52:52 +02:00
stack.yaml stack: nix support 2022-01-02 10:34:45 +01:00

Error reporting made easy

Diagnose is a small library used to report compiler/interpreter errors in a beautiful yet readable way.

As a great example, here's the output of the last test:

first example

If you do not like unicode characters, or choose to target platforms which cannot output them natively; you may alternatively print the whole diagnostic with ASCII characters, like this:

second example


Copyright (c) 2021 Mesabloo, all rights reserved.