[Pkg-haskell-commits] [SCM] haskell-testpack branch, master, updated. debian/1.0.2-1-4-gb0d6b36
John Goerzen
jgoerzen at complete.org
Fri Apr 23 14:42:25 UTC 2010
The following commit has been merged in the master branch:
commit d8b862a6b2f32d7d188f7009288b8b72694830b3
Author: John Goerzen <jgoerzen at complete.org>
Date: Tue Oct 5 20:10:56 2004 +0100
More doc fixes
Keywords:
(jgoerzen at complete.org--projects/missingh--head--1.0--patch-8)
diff --git a/MissingH/Listutil.hs b/MissingH/Listutil.hs
index 250c8b5..bbeb479 100644
--- a/MissingH/Listutil.hs
+++ b/MissingH/Listutil.hs
@@ -29,9 +29,9 @@ module MissingH.Listutil(-- * Tests
false otherwise.
Example:
-@
-startswith He Hello -> True
-@
+
+> startswith "He" "Hello" -> True
+
-}
startswith :: Eq a => [a] -> [a] -> Bool
@@ -45,9 +45,9 @@ startswith (x:xs) (l:ls) =
false otherwise.
Example:
-@
-endswith lo Hello True
-@
+
+> endswith "lo" "Hello" -> True
+
-}
endswith :: Eq a => [a] -> [a] -> Bool
endswith x l = startswith (reverse x) (reverse l)
diff --git a/MissingH/Strutil.hs b/MissingH/Strutil.hs
index e680e7c..0c9b927 100644
--- a/MissingH/Strutil.hs
+++ b/MissingH/Strutil.hs
@@ -24,6 +24,8 @@ Written by John Goerzen, jgoerzen\@complete.org
module MissingH.Strutil(-- * Whitespace Removal
strip, lstrip, rstrip,
-- * Tests
+ -- | Note: These functions are aliases for functions
+ -- in "MissingH.Listutil".
startswith, endswith
) where
import MissingH.Listutil(startswith, endswith)
--
haskell-testpack
More information about the Pkg-haskell-commits
mailing list