diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-03-11 15:53:00 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-03-11 15:53:00 +0100 |
commit | d840363bf0edbbd703e1a7d2e2700c5feeedbbc6 (patch) | |
tree | 7f221ffab1025ab4c316ab404e73449fa8477f1d | |
parent | 5c053d4c7106b5fe894263281ec7501ec5293bb6 (diff) | |
parent | d6f6657c28f0ae4f82a249db0f6ce01482319713 (diff) | |
download | hakyll-d840363bf0edbbd703e1a7d2e2700c5feeedbbc6.tar.gz |
Merge remote-tracking branch 'piyush-kurur/master'
Conflicts:
hakyll.cabal
-rw-r--r-- | hakyll.cabal | 2 | ||||
-rw-r--r-- | src/Hakyll/Core/Configuration.hs | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/hakyll.cabal b/hakyll.cabal index 020bea7..798625b 100644 --- a/hakyll.cabal +++ b/hakyll.cabal @@ -143,6 +143,7 @@ Library citeproc-hs >= 0.3.2 && < 0.4, containers >= 0.3 && < 0.6, cryptohash >= 0.7 && < 0.9, + data-default >= 0.4 && < 0.6, deepseq >= 1.3 && < 1.4, directory >= 1.0 && < 1.3, filepath >= 1.0 && < 1.4, @@ -216,6 +217,7 @@ Test-suite hakyll-tests citeproc-hs >= 0.3.2 && < 0.4, containers >= 0.3 && < 0.6, cryptohash >= 0.7 && < 0.9, + data-default >= 0.4 && < 0.6, deepseq >= 1.3 && < 1.4, directory >= 1.0 && < 1.3, filepath >= 1.0 && < 1.4, diff --git a/src/Hakyll/Core/Configuration.hs b/src/Hakyll/Core/Configuration.hs index fdca879..5382b6d 100644 --- a/src/Hakyll/Core/Configuration.hs +++ b/src/Hakyll/Core/Configuration.hs @@ -8,6 +8,7 @@ module Hakyll.Core.Configuration -------------------------------------------------------------------------------- +import Data.Default (Default(..)) import Data.List (isPrefixOf, isSuffixOf) import System.FilePath (normalise, takeFileName) @@ -56,6 +57,9 @@ data Configuration = Configuration inMemoryCache :: Bool } +-------------------------------------------------------------------------------- +instance Default Configuration where + def = defaultConfiguration -------------------------------------------------------------------------------- -- | Default configuration for a hakyll application |