This is a lightweight GHC plugin that provides an ergonomic web UI for viewing the errors and warnings emitted during compilation. It seeks to improve the developer experience for a REPL based workflow.
Advantages over viewing errors in the terminal include:
Install the server component:
> cabal update && cabal install erriscope-server
or
> stack update && stack install erriscope-server
Start the server:
> erriscope-server
Start up a REPL with the following arguments to enable the plugin:
> cabal repl -b erriscope --repl-options="-fplugin Erriscope"
or
> stack repl --package erriscope --ghci-options "-fplugin Erriscope"
Point your browser to localhost:8888
You can use the Shift+UpArrow
and Shift+DownArrow
hotkeys to quickly cycle
through errors.
You can change the port on which the server and plugin run using command line arguments. For example, if you want to run the server on port 8000, start the server as follows:
> erriscope-server 8000
and add the additon GHC plugin option:
> cabal repl -b erriscope --repl-options="-fplugin Erriscope -fplugin-opts Erriscope:8000"