Alex, a couple years ago, Stefan Jacholke built something like this for CodeWorld, which is a variant of Haskell.  It's not general-purpose and builds for a custom prelude, but it might be worth looking at.  You should be aware that while I've kept it basically working, there are plenty of known bugs.

Available at https://code.world/blocks

On Thu, Apr 26, 2018, 1:48 AM Alex McLean <alex@slab.org> wrote:
Hi all,

I'm wondering if anyone has made a 'block editor' for Haskell, i.e. a
syntax-aware text editor where you make a program by snapping together
type-compatible words, usually with a mouse. Something similar to
Scratch for example: https://scratch.mit.edu/

Any leads appreciated!

Best wishes

alex
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.