summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hakyll.cabal2
-rw-r--r--src/Hakyll/Core/Configuration.hs4
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