diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-19 14:08:19 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-19 14:08:19 +0100 |
commit | f5a6c4974d561e05b2882d38b54b45188ee31185 (patch) | |
tree | 4be6d29872ef395c2bbbc1550021abb88eddf979 /src/Text/Hakyll.hs | |
parent | e9dd4c75a21ee9bc8f42ea725d071974127a97d1 (diff) | |
download | hakyll-f5a6c4974d561e05b2882d38b54b45188ee31185.tar.gz |
Hakyll now passes HLint.
Diffstat (limited to 'src/Text/Hakyll.hs')
-rw-r--r-- | src/Text/Hakyll.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Hakyll.hs b/src/Text/Hakyll.hs index 6718de6..295f32e 100644 --- a/src/Text/Hakyll.hs +++ b/src/Text/Hakyll.hs @@ -4,6 +4,7 @@ module Text.Hakyll ) where import Control.Monad.Reader (runReaderT) +import Control.Monad (when) import qualified Data.Map as M import System.Environment (getArgs, getProgName) import System.Directory (doesDirectoryExist, removeDirectoryRecursive) @@ -43,8 +44,7 @@ clean = do remove' "_cache" where remove' dir = do putStrLn $ "Removing " ++ dir ++ "..." exists <- doesDirectoryExist dir - if exists then removeDirectoryRecursive dir - else return () + when exists $ removeDirectoryRecursive dir -- | Show usage information. help :: IO () @@ -61,4 +61,4 @@ help = do ++ name ++ " server [port] Run a local test server.\n" server :: Integer -> IO () -server p = do simpleServer (fromIntegral $ p) "_site" +server p = simpleServer (fromIntegral p) "_site" |