[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 15:02:32 UTC 2010
The following commit has been merged in the master branch:
commit d2177f2b21c5cf522a68cc5a72c7106942b24342
Author: John Goerzen <jgoerzen at complete.org>
Date: Tue Aug 23 04:14:39 2005 +0100
Added simplegrep.hs example
per request received from user
diff --git a/examples/simplegrep.hs b/examples/simplegrep.hs
new file mode 100644
index 0000000..a8ed2a9
--- /dev/null
+++ b/examples/simplegrep.hs
@@ -0,0 +1,6 @@
+import MissingH.List
+main = do
+ c <- getContents
+ putStr (unlines(filter (\line -> contains "Haskell" line)
+ (lines c)))
+
--
haskell-testpack
More information about the Pkg-haskell-commits
mailing list