diff options
author | Piyush P Kurur <ppk@cse.iitk.ac.in> | 2013-03-07 18:04:21 +0530 |
---|---|---|
committer | Piyush P Kurur <ppk@cse.iitk.ac.in> | 2013-03-07 18:04:21 +0530 |
commit | d6f6657c28f0ae4f82a249db0f6ce01482319713 (patch) | |
tree | cd30a7bfaa6fdd0c684fb5e493d69c8e0138be93 | |
parent | 7fc2f677d9e4b4267059275d4e6451410893fc04 (diff) | |
download | hakyll-d6f6657c28f0ae4f82a249db0f6ce01482319713.tar.gz |
refactored the Default instance of Configuration
-rw-r--r-- | src/Hakyll/Core/Configuration.hs | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/Hakyll/Core/Configuration.hs b/src/Hakyll/Core/Configuration.hs index 8cbbff0..5382b6d 100644 --- a/src/Hakyll/Core/Configuration.hs +++ b/src/Hakyll/Core/Configuration.hs @@ -59,24 +59,7 @@ data Configuration = Configuration -------------------------------------------------------------------------------- instance Default Configuration where - def = Configuration - { destinationDirectory = "_site" - , storeDirectory = "_cache" - , tmpDirectory = "_cache/tmp" - , providerDirectory = "." - , ignoreFile = ignoreFile' - , deployCommand = "echo 'No deploy command specified'" - , inMemoryCache = True - } - where - ignoreFile' path - | "." `isPrefixOf` fileName = True - | "#" `isPrefixOf` fileName = True - | "~" `isSuffixOf` fileName = True - | ".swp" `isSuffixOf` fileName = True - | otherwise = False - where - fileName = takeFileName path + def = defaultConfiguration -------------------------------------------------------------------------------- -- | Default configuration for a hakyll application |