added touch command
This commit is contained in:
parent
0a65be849e
commit
e626c141a4
@ -1,6 +1,7 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
module Scaffold.Build
|
module Scaffold.Build
|
||||||
( build
|
( build
|
||||||
|
, touch
|
||||||
, getDeps
|
, getDeps
|
||||||
, touchDeps
|
, touchDeps
|
||||||
, findHaskellFiles
|
, findHaskellFiles
|
||||||
@ -27,6 +28,14 @@ import Data.Text (unpack)
|
|||||||
import Control.Monad (filterM)
|
import Control.Monad (filterM)
|
||||||
import Control.Exception (SomeException, try)
|
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 :: IO ()
|
||||||
build = do
|
build = do
|
||||||
{-
|
{-
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user