A while ago there was a framework Blobs for building box-connector diagram editors. It is probably a somewhat bit-rotted now: http://www.cs.york.ac.uk/fp/darcs/Blobs/ I seem to remember a Haskell Workshop report about Dazzle (the application that was the genesis of Blobs) but it doesn't appear to be linked from that page.