lovasoa / RLE

Run-length encoding and decoding in haskell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RLE

Run-length encoding and decoding in haskell.

Repository contents

  • rle.hs : Compute the run length encoding of the standard input and print it on the standart output
  • unrle.hs : Takes a run length encoded stream on the standard input and decodes it to the standart output

Compiling

$ ghc rle.hs
$ ghc unrle.hs

Examples

rle

$ echo -n "boom" | ./rle 
1b2o1m

unrle

$ echo -n "1b2o1m" | ./unrle 
boom

About

Run-length encoding and decoding in haskell.

License:MIT License


Languages

Language:Haskell 100.0%