neovimhaskell / nvim-hs

Neovim API for Haskell plugins as well as the plugin provider
Other
267 stars 18 forks source link

Use pretty-printing library for presenting error messages #26

Closed saep closed 9 years ago

saep commented 9 years ago

Instead of using "show" for exceptions, we should use a pretty-printing library for displaying helpful text on how to resolve the error. An error could then open a temporary window in neovim (although this should be configurable) with the error printed pretty.

Since this is more a cosmetic matter than a functional one, the priority is set to low.

saep commented 9 years ago

ansi-wl-pprint seems like a good choice. It's already installed by some dependency and it supports colors.

saep commented 9 years ago

Also, if we have to pass those errors to neovim, the color and formatting can be stripped.