summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergei Trofimovich <siarheit@google.com>2016-04-29 09:38:55 +0100
committerSergei Trofimovich <siarheit@google.com>2016-04-29 09:38:55 +0100
commite13c1f2af988aca231301df3f093b130a87731c5 (patch)
treee3c519ca443e0ce25475b976e1fba554e5e1d1ee /src
parent216e2f4d07a29518ce19568911bce5ca92ddd4ab (diff)
downloadhakyll-e13c1f2af988aca231301df3f093b130a87731c5.tar.gz
src/Hakyll/Web/Paginate.hs: Fix build failure
The code tried to generate Show instance for a function. I don't know where it used to come from but it's not there anymore. Build fails as: [48 of 49] Compiling Hakyll.Web.Paginate ( src/Hakyll/Web/Paginate.hs, dist/build/Hakyll/Web/Paginate.o ) src/Hakyll/Web/Paginate.hs:40:17: No instance for (Show (PageNumber -> Identifier)) (maybe you haven't applied enough arguments to a function?) arising from the second field of ‘Paginate’ (type ‘PageNumber -> Identifier’) Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself When deriving the instance for (Show Paginate) Change drops Show instance as it's not very useful. Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/Hakyll/Web/Paginate.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Paginate.hs b/src/Hakyll/Web/Paginate.hs
index 65b4525..32e5631 100644
--- a/src/Hakyll/Web/Paginate.hs
+++ b/src/Hakyll/Web/Paginate.hs
@@ -37,7 +37,7 @@ data Paginate = Paginate
{ paginateMap :: M.Map PageNumber [Identifier]
, paginateMakeId :: PageNumber -> Identifier
, paginateDependency :: Dependency
- } deriving (Show)
+ }
--------------------------------------------------------------------------------