From 44fc490a418d1d102633d74626e6343c827a5758 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Mon, 30 May 2011 11:45:22 +0200 Subject: Minor changes in Page haddocks --- src/Hakyll/Core/Compiler.hs | 2 +- src/Hakyll/Web/Page.hs | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Hakyll/Core/Compiler.hs b/src/Hakyll/Core/Compiler.hs index 28d466c..d63c420 100644 --- a/src/Hakyll/Core/Compiler.hs +++ b/src/Hakyll/Core/Compiler.hs @@ -230,7 +230,7 @@ getDependency id' = CompilerM $ do Found x -> return x where notFound = - "Hakyll.Core.Compiler.getDependency: " ++ show id' ++ " was " + "Hakyll.Core.Compiler.getDependency: " ++ show id' ++ " was " ++ "not found in the cache, the cache might be corrupted or " ++ "the item you are referring to might not exist" wrongType e r = diff --git a/src/Hakyll/Web/Page.hs b/src/Hakyll/Web/Page.hs index bcc3aba..7520215 100644 --- a/src/Hakyll/Web/Page.hs +++ b/src/Hakyll/Web/Page.hs @@ -3,13 +3,16 @@ -- A page is an important concept in Hakyll. It is a key-value mapping, and has -- one field with an arbitrary type. A 'Page' thus consists of -- --- * a key-value mapping (of the type @Map String String@); +-- * metadata (of the type @Map String String@); -- --- * a value (of the type @a@). +-- * the actual value (of the type @a@). -- -- Usually, the value will be a 'String' as well, and the value will be the body -- of the page. -- +-- However, this is certainly no restriction. For example, @Page ByteString@ +-- could be used to represent a binary item (e.g. an image) and some metadata. +-- -- Pages can be constructed using Haskell, but they are usually parsed from a -- file. The file format for pages is pretty straightforward. -- @@ -18,7 +21,7 @@ -- -- This is a valid page with two lines. If we load this in Hakyll, there would -- be no metadata, and the body would be the given text. Let's look at a page --- with some metadata. +-- with some metadata: -- -- > --- -- > title: Alice's Adventures in Wonderland -- cgit v1.2.3