GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
(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?
Yes, I think this can be closed now. I think some of the code referenced above made its way into diagrams-builder, and the auto-recompilation is now handled by Diagrams.Backend.CmdLine in diagrams-lib.