File: simplegrep.hs

package info (click to toggle)
missingh 1.6.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 688 kB
  • sloc: haskell: 5,472; makefile: 2
file content (6 lines) | stat: -rw-r--r-- 151 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
import MissingH.List
main = do
   c <- getContents
   putStr (unlines(filter (\line -> contains "Haskell" line)
                          (lines c)))