diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-24 10:30:19 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-24 10:30:19 +0100 |
commit | 59e3c7f277a64f09ef65c4ca42d7c2398f04acd4 (patch) | |
tree | 86afb9c08f7363adc582fef17d40d8f5878cbfa3 /src/Text/Hakyll/Util.hs | |
parent | 6c94ad79926d9808ad1817d06c7e9aa69679318f (diff) | |
download | hakyll-59e3c7f277a64f09ef65c4ca42d7c2398f04acd4.tar.gz |
Wrote some more documentation.
Diffstat (limited to 'src/Text/Hakyll/Util.hs')
-rw-r--r-- | src/Text/Hakyll/Util.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Text/Hakyll/Util.hs b/src/Text/Hakyll/Util.hs index 5105a31..358c60e 100644 --- a/src/Text/Hakyll/Util.hs +++ b/src/Text/Hakyll/Util.hs @@ -1,3 +1,4 @@ +-- | Miscellaneous text manipulation functions. module Text.Hakyll.Util ( trim , stripHTML @@ -26,6 +27,8 @@ stripHTML str = let (beforeTag, rest) = break (== '<') str -- | Make a HTML link. -- -- > link "foo" "bar.html" == "<a href='bar.html'>foo</a>" -link :: String -> String -> String +link :: String -- ^ Link text. + -> String -- ^ Link destination. + -> String link text destination = "<a href=\"" ++ destination ++ "\">" ++ text ++ "</a>" |