Run-length encoding and decoding in haskell.
rle.hs
: Compute the run length encoding of the standard input and print it on the standart outputunrle.hs
: Takes a run length encoded stream on the standard input and decodes it to the standart output
$ ghc rle.hs
$ ghc unrle.hs
$ echo -n "boom" | ./rle
1b2o1m
$ echo -n "1b2o1m" | ./unrle
boom