Haskell by Example: Line Filters

original
import Data.Char

main = interact $ fmap toUpper
$ echo 'hello'   > /tmp/lines
$ echo 'filter' >> /tmp/lines
$ cat /tmp/lines | runhaskell line-filters.hs
HELLO
FILTER
back to index