HLS Render Plugin Demo

I’ve been working on a haskell-language-server plugin.

It’s is conceptually very similar to (and cribs heavily from) hls-eval-plugin.

However, unlike hls-eval-plugin, it’s not triggered by doctest comments, instead it takes a “configuration” file, containing a number of Haskell functions, and for each combination of “value in the current module” and “function in the config”, if the result of applying the function to the value is IO () it generates a code lens which runs that result.

It’s still at the Proof of Concept stage, but I think it’s demoable.

14 Likes

This is pretty cool!

I’ve never really liked the eval plugin, because I don’t like writing non-trivial code in comments, where it isn’t type checked etc.

I’d probably use this a lot if you added either keyboard-based triggers or rerun-on-save.

3 Likes

This is very very cool, especially the waterfall-cad integration demo. Have you got any updates on the PR? Maybe you could add a link here.

Cheers!

3 Likes

Hi, the PR is here

2 Likes