Split out auto-recompilation into a standalone tool using hint #5

Closed
fryguybob opened this Issue Aug 4, 2012 · 6 comments

Comments

Projects
None yet
3 participants
Owner

fryguybob commented Aug 4, 2012

(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.

@ghost ghost assigned fryguybob Aug 4, 2012

Owner

fryguybob commented Aug 4, 2012

(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:

http://hpaste.org/45365/diagrams_with_hint

Owner

fryguybob commented Aug 4, 2012

(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).

http://hpaste.org/45484/hint_diagrams_20

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.

Owner

fryguybob commented Aug 4, 2012

(Imported. Original comment by byor...@gmail.com on April 11, 2011, 02:33:25 AM UTC)

Awesome, go for it!

Owner

fryguybob commented Aug 4, 2012

(Imported. Original comment by fryguy...@gmail.com on April 11, 2011, 11:13:48 AM UTC)

I have the project up here:

http://patch-tag.com/r/fryguybob/diagrams-hint/

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).

Owner

bergey commented Sep 8, 2014

Is this superceded by using fsnotify, eg, diagrams/diagrams-lib#213?

Owner

byorgey commented Aug 20, 2015

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.

@byorgey byorgey closed this Aug 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment