Wrote some more documentation.
commit59e3c7f277a64f09ef65c4ca42d7c2398f04acd4
authorJasper Van der Jeugt <jaspervdj@gmail.com>
dateSun 24 Jan 2010, 10:30 (17 years ago)
parent6c94ad7
src/Text/Hakyll/CompressCSS.hs+2
@@ -1,3 +1,5 @@
1+-- | Module used for CSS compression. The compression is currently in a simple
2+-- state, but would typically reduce the number of bytes by about 25%.
13module Text.Hakyll.CompressCSS
24 ( compressCSS
35 ) where
src/Text/Hakyll/Page.hs+1−1
@@ -1,10 +1,10 @@
1+-- | A module for dealing with "Page"s. This module is mostly internally used.
12module Text.Hakyll.Page
23 ( Page
34 , fromContext
45 , getValue
56 , getBody
67 , readPage
7− , splitAtDelimiters
88 ) where
99
1010import qualified Data.Map as M
src/Text/Hakyll/Render.hs+2
@@ -1,3 +1,5 @@
1+-- | Module containing rendering functions. All these functions are used to
2+-- render files to the @_site@ directory.
13module Text.Hakyll.Render
24 ( depends
35 , render
src/Text/Hakyll/Util.hs+4−1
@@ -1,3 +1,4 @@
1+-- | Miscellaneous text manipulation functions.
12module Text.Hakyll.Util
23 ( trim
34 , stripHTML
@@ -26,6 +27,8 @@ stripHTML str = let (beforeTag, rest) = break (== '<') str
2627-- | Make a HTML link.
2728--
2829-- > link "foo" "bar.html" == "<a href='bar.html'>foo</a>"
29−link :: String -> String -> String
30+link :: String -- ^ Link text.
31+ -> String -- ^ Link destination.
32+ -> String
3033link text destination = "<a href=\"" ++ destination ++ "\">"
3134 ++ text ++ "</a>"