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 System.Process ( system ) main = defaultMain $ do "*.md" |> \filePath -> system $ "pandoc -t html " ++ filePath "*.html" |> \_ -> system $ "osascript refreshSafari.AppleScript"
[Skip to Readme]
Downloads
- twitch-0.1.7.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.5 && <5.0), data-default, directory, filepath, fsnotify, Glob, optparse-applicative, semigroups, time, transformers [details] |
License | MIT |
Copyright | (c) Jonathan Fischoff 2015 |
Author | Jonathan Fischoff, Andreas Schacker |
Maintainer | jonathangfischoff@gmail.com |
Category | System |
Home page | https://github.com/jfischoff/twitch |
Source repo | head: git clone https://github.com/jfischoff/twitch.git |
Uploaded | by AndreasSchacker at 2018-12-12T16:16:39Z |
Distributions | |
Reverse Dependencies | 3 direct, 1 indirect [details] |
Downloads | 8960 total (29 in the last 30 days) |
Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2018-12-12 [all 1 reports] |