summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web/Page.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-26 15:49:11 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-26 15:49:11 +0100
commit5c454fc2ced8364e000f8c9cc36387e39e001714 (patch)
tree59630d5dd2e19162cccba2381b54a2d052b49bd5 /src/Hakyll/Web/Page.hs
parented12fd21200bad030eeb8d2ccf2d0acdbdc73949 (diff)
downloadhakyll-5c454fc2ced8364e000f8c9cc36387e39e001714.tar.gz
Fix $body$ bug, add `traceShowCompiler`
Diffstat (limited to 'src/Hakyll/Web/Page.hs')
-rw-r--r--src/Hakyll/Web/Page.hs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Hakyll/Web/Page.hs b/src/Hakyll/Web/Page.hs
index c61008c..8a16ef8 100644
--- a/src/Hakyll/Web/Page.hs
+++ b/src/Hakyll/Web/Page.hs
@@ -61,8 +61,6 @@ import Prelude hiding (id)
import Control.Category (id)
import Control.Arrow (arr, (>>^), (&&&), (>>>))
import System.FilePath (takeBaseName, takeDirectory)
-import Data.Monoid (Monoid, mempty)
-import Data.Map (Map)
import qualified Data.Map as M
import Data.List (sortBy)
import Data.Ord (comparing)
@@ -82,16 +80,6 @@ import Hakyll.Web.Util.String
fromBody :: a -> Page a
fromBody = Page M.empty
--- | Create a metadata page, without a body
---
-fromMap :: Monoid a => Map String String -> Page a
-fromMap m = Page m mempty
-
--- | Convert a page to a map. The body will be placed in the @body@ key.
---
-toMap :: Page String -> Map String String
-toMap (Page m b) = M.insert "body" b m
-
-- | Read a page (do not render it)
--
readPageCompiler :: Compiler Resource (Page String)