Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=61ef27a23739a3cf7740f269f804ab076ef4223b876a376bdcbc4dda57f18247
md5=213fbbf17f54927d62464d0ac1188f8a
Description
Pipe in the text of OCaml compiler errors; it'll output them prettified. https://github.com/chenglou/BetterErrors
README
Before

After

Before

After

Work in progress!
(OPAM package coming soon.)
opam pin add BetterErrors https://github.com/chenglou/BetterErrors.gitThis'll expose a huh command, for you to use like so:
ocamlc myApp.ml |& huhExplanation: |& 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)
-
re
>= "1.5.0" -
ANSITerminal
>= "0.6.5" -
ocamlbuild
build -
ocamlfind
build -
ocaml
>= "4.02.1" & < "5.0"
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building BetterErrors with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.0.1 (this version) | good | good | n/a | n/a | n/a |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure