package BetterErrors

  1. Overview
  2. Docs
Better compiler error output.

Install

Dune Dependency

Authors

Maintainers

Sources

v0.0.1.tar.gz
md5=213fbbf17f54927d62464d0ac1188f8a

Description

Pipe in the text of OCaml compiler errors; it'll output them prettified. https://github.com/chenglou/BetterErrors

Tags

syntax

Published: 29 Mar 2016

README

Before

After

Before

After

Work in progress!

(OPAM package coming soon.)

opam pin add BetterErrors https://github.com/chenglou/BetterErrors.git

This'll expose a huh command, for you to use like so:

ocamlc myApp.ml |& huh

Explanation: |& is a bash shortcut for 2>&1 | (not available in vanilla sh), which, in turn, means "pipe the stuff from stderr into stdout, then pipe it back into stdin of the next command". huh takes in this info and searches for errors to pretty-print back.

Have fun!

For Development

git clone this repo, cd into it, then run:

git clone https://github.com/chenglou/BetterErrors.git ./BetterErrors
cd ./BetterErrors
make
opam pin add BetterErrors ./

betterErrorsShell.byte is the locally generated script that's the same as the production huh.

Dependencies (5)

  1. re >= "1.5.0"
  2. ANSITerminal >= "0.6.5"
  3. ocamlbuild build
  4. ocamlfind build
  5. ocaml >= "4.02.1" & < "5.0"

Dev Dependencies

None

Used by (1)

  1. reason < "1.7.4"

Conflicts

None