Skip to content

Instantly share code, notes, and snippets.

@3noch
Created March 23, 2012 20:17
Show Gist options
  • Save 3noch/2174548 to your computer and use it in GitHub Desktop.
Save 3noch/2174548 to your computer and use it in GitHub Desktop.
import Shelly
import Prelude hiding (FilePath)
sudo_ com args = run_ "sudo" (com:args)
main = shelly $ verbosely $ do
apt_get "update" []
apt_get "install" ["haskell-platform"]
where
apt_get mode more = sudo_ "apt-get" (["-y", "-q", mode] ++ more)
@3noch
Copy link
Author

3noch commented Mar 23, 2012

Uncanny: Bash's extension is "sh" and Haskell's is "hs"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment