twitch: A high level file watcher DSL
Twitch is a monadic DSL and library for file watching.
It conveniently utilizes do
notation in the style of
Shake and clay to expose the functionality of the
fsnotify cross-platform file system watcher.
Here is an example that converts Markdown files to HTML and reloads Safari whenever the input files change.
import Twitch import Filesystem.Path.CurrentOS main = defaultMain $ do "*.md" |> \filePath -> system $ "pandoc -t html " ++ encodeString filePath "*.html" |> \_ -> system $ "osascript refreshSafari.AppleScript"
[Skip to Readme]
Downloads
- twitch-0.1.2.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.1.2.2, 0.1.3.0, 0.1.4.0, 0.1.5.0, 0.1.5.1, 0.1.6.1, 0.1.7.0, 0.1.7.1, 0.1.7.2 |
---|---|
Dependencies | base (>=4.7 && <4.8), containers (>=0.5 && <0.6), data-default (>=0.5 && <0.6), directory (>=1.2 && <1.3), fsnotify (>=0.1 && <0.2), Glob (>=0.7 && <0.8), mtl (>=2.1 && <2.2), optparse-applicative (>=0.8 && <0.9), stm-chans (>=3.0 && <3.1), system-fileio (>=0.3 && <0.4), system-filepath (>=0.4 && <0.5), text (>=1.1 && <1.2), time (>=1.4 && <1.5) [details] |
License | MIT |
Author | Jonathan Fischoff |
Maintainer | jonathangfischoff@gmail.com |
Category | System |
Home page | https://github.com/jfischoff/twitch |
Uploaded | by JonathanFischoff at 2014-11-16T05:37:59Z |
Distributions | |
Reverse Dependencies | 3 direct, 1 indirect [details] |
Downloads | 9082 total (3 in the last 30 days) |
Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |