Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Open
fryguybob opened this Issue · 5 comments

2 participants

@fryguybob
Owner

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

@fryguybob fryguybob was assigned
@fryguybob
Owner

(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

@fryguybob
Owner

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

@fryguybob
Owner

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

Awesome, go for it!

@fryguybob
Owner

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

@bergey
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.