Friday, January 24, 2014

Haskell Worksheet in EclipseFP 2.6

A sneak preview of the worksheet functionality in the upcoming EclipseFP release. I have a Haskell module with a few functions, and the worksheet displays some results using different rendering modes:

  • Simple text: shows the result of the expression as GHCi would
  • HTML/SVG: renders HTML markup and SVG images in a SWT Browser element. In the screenshot there's Blaze HTML and Diagrams SVG
  • JSON: display JSON objects and arrays in a tree
We use BuildWrapper and the GHC API to execute the expressions every time the file is saved. The expressions are persistent and hence survive restarting Eclipse.


I don't know when EclipseFP 2.6 will be released, but you can of course get the current code from github.

5 comments:

Simon said...

Mr Moresmau will you marry me? :-) Seriously, this looks awesome.

JP Moresmau said...

Nope, polygamy is forbidden where I live (-:

Unknown said...

Wow, that looks absolutely amazing! EclipseFP is really good and I love Diagrams too.

Unknown said...

My dream is becoming a reality!

AlanKim Zimmerman said...

Now if we had an emacs version ...