added touch command

This commit is contained in:
Max Cantor 2011-06-30 01:55:09 -07:00
parent 0a65be849e
commit e626c141a4

View File

@ -1,6 +1,7 @@
{-# LANGUAGE OverloadedStrings #-}
module Scaffold.Build
( build
, touch
, getDeps
, touchDeps
, findHaskellFiles
@ -27,6 +28,14 @@ import Data.Text (unpack)
import Control.Monad (filterM)
import Control.Exception (SomeException, try)
-- | Touch any files with altered dependencies but do not build
touch :: IO ()
touch = do
hss <- findHaskellFiles "."
deps' <- mapM determineHamletDeps hss
let deps = fixDeps $ zip hss deps'
touchDeps deps
build :: IO ()
build = do
{-