An open API service indexing awesome lists of open source software.

https://github.com/lovasoa/rle

Run-length encoding and decoding in haskell.
https://github.com/lovasoa/rle

Last synced: 3 months ago
JSON representation

Run-length encoding and decoding in haskell.

Awesome Lists containing this project

README

          

# 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
```sh
$ ghc rle.hs
$ ghc unrle.hs
```

## Examples

### rle
```sh
$ echo -n "boom" | ./rle
1b2o1m
```
### unrle
```sh
$ echo -n "1b2o1m" | ./unrle
boom
```