(Imported from http://code.google.com/p/diagrams/issues/detail?id=16. Original issue from byor...@gmail.com on April 2, 2011, 06:07:57 PM UTC)
See the #diagrams IRC logs from 1 April 2011 for some ideas on what could be done here.
(Imported. Original comment by fryguy...@gmail.com on April 8, 2011, 12:31:29 AM UTC)
Here is a minimal example of using hint with diagrams:
(Imported. Original comment by fryguy...@gmail.com on April 9, 2011, 04:50:38 PM UTC)
Here is a fuller example (I had a little more time this weekend as an Ultimate tournament was cancelled).
Right now this is just repl rendering but it should be easy to add looped compile. I can make a diagrams-hint project unless there is any objection.
(Imported. Original comment by byor...@gmail.com on April 11, 2011, 02:33:25 AM UTC)
Awesome, go for it!
(Imported. Original comment by fryguy...@gmail.com on April 11, 2011, 11:13:48 AM UTC)
I have the project up here:
I'm in the process of reordering the transformer stack so we can keep a module in context. At that point we will basically have a simple version of ghci where we can choose what to do when asked to "evaluate" a diagram. I also discovered that hakyll monitors for file system changes on Linux using hinotify (when built with the inotify flag). It should be easy to do something similar (on Windows this requires using IO completion ports which I might tackle at some point).
Is this superceded by using fsnotify, eg, diagrams/diagrams-lib#213?