Skip to content

Commit

Permalink
Fixed some minor issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Mar 9, 2010
1 parent 0204dd6 commit 24959fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Text/Hakyll/Internal/Render.hs
Expand Up @@ -40,5 +40,5 @@ writePage = createRenderAction $ \initialContext -> do
let context = additionalContext' `M.union` M.singleton "root" (toRoot url)
destination <- toDestination url
makeDirectories destination
    -- Substitute $root here, just before writing.
-- Substitute $root here, just before writing.
liftIO $ writeFile destination $ finalSubstitute (fromString body) context
4 changes: 2 additions & 2 deletions src/Text/Hakyll/RenderAction.hs
Expand Up @@ -99,11 +99,11 @@ instance Category RenderAction where
}

instance Arrow RenderAction where
arr f = id { actionFunction = \x -> return (f x) }
arr f = id { actionFunction = return . f }

first x = RenderAction
{ actionDependencies = actionDependencies x
, actionUrl = actionUrl x
, actionFunction = \(y, z) -> do y' <- (actionFunction x) y
, actionFunction = \(y, z) -> do y' <- actionFunction x y
return (y', z)
}

0 comments on commit 24959fd

Please sign in to comment.