twitch: A high level file watcher DSL

[ library, mit, system ] [ Propose Tags ]

Twitch is 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]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

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-16T00:27:59Z
Distributions
Reverse Dependencies 3 direct, 1 indirect [details]
Downloads 8744 total (35 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]

Readme for twitch-0.1.2.1

[back to package description]