A simple library for reporting compiler/interpreter errors
Go to file
2021-08-15 20:52:52 +02:00
assets diagnose: create a simple to show-off the library 2021-08-15 20:52:52 +02:00
src diagnose: rewrite the whole library 2021-08-15 20:44:04 +02:00
test diagnose: rewrite the whole library 2021-08-15 20:44:04 +02:00
.gitignore Import all from https://github.com/Mesabloo/nihil 2020-08-21 12:40:14 +02:00
diagnose.cabal diagnose: rewrite the whole library 2021-08-15 20:44:04 +02: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: rewrite the whole library 2021-08-15 20:44:04 +02:00
README.md diagnose: create a simple to show-off the library 2021-08-15 20:52:52 +02:00
stack.yaml stack: bump to latest LTS 2021-08-12 20:14:09 +02: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.