A simple library for reporting compiler/interpreter errors
Go to file
2022-01-02 17:07:04 +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 parsec: create compatibility layer 2022-01-02 16:50:26 +01:00
test parsec: create compatibility layer 2022-01-02 16:50:26 +01:00
.gitignore Import all from https://github.com/Mesabloo/nihil 2020-08-21 12:40:14 +02:00
diagnose.cabal parsec: create compatibility layer 2022-01-02 16:50:26 +01:00
hie.yaml hie: add additional test component 2022-01-02 17:07:04 +01:00
LICENSE Import all from https://github.com/Mesabloo/nihil 2020-08-21 12:40:14 +02:00
package.yaml parsec: create compatibility layer 2022-01-02 16:50:26 +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.