summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll/Paginate.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-05-22 11:07:28 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-05-22 11:07:28 +0200
commitc31f22c79adbd1bce7876aa9eb9cfcbb9f226623 (patch)
tree5076564d0700ee940ef503bcddb9ee108562115f /src/Text/Hakyll/Paginate.hs
parentf88a5ec2196272a0b447ccb44121fa23312a072d (diff)
downloadhakyll-c31f22c79adbd1bce7876aa9eb9cfcbb9f226623.tar.gz
Add possibility to change URL through Arrows.
Diffstat (limited to 'src/Text/Hakyll/Paginate.hs')
-rw-r--r--src/Text/Hakyll/Paginate.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Hakyll/Paginate.hs b/src/Text/Hakyll/Paginate.hs
index a1a64e4..1b6c015 100644
--- a/src/Text/Hakyll/Paginate.hs
+++ b/src/Text/Hakyll/Paginate.hs
@@ -61,8 +61,8 @@ paginate configuration renderables = paginate' Nothing renderables (1 :: Int)
where
-- Create a link with a given label, taken from the configuration.
linkWithLabel f r = Right $ case actionUrl r of
- Just l -> createSimpleHakyllAction $ link (f configuration) <$> l
- Nothing -> error "No link found for pagination."
+ Left l -> createSimpleHakyllAction $ link (f configuration) <$> l
+ Right _ -> error "No link found for pagination."
-- The main function that creates combined renderables by recursing over
-- the list of items.