Last active
August 29, 2015 14:27
-
-
Save danstn/4de49d5cefdcc187fbf1 to your computer and use it in GitHub Desktop.
Very simple Haskell watcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env runhaskell | |
{-# LANGUAGE OverloadedStrings #-} | |
import Turtle | |
main :: IO () | |
main = do | |
stdout (runWatch $ findSrc) | |
findSrc :: Shell Text | |
findSrc = inproc "find" ["./src"] "" | |
runWatch :: Shell Text -> Shell Text | |
runWatch s = inproc "entr" ["cabal", "build"] s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment