dataenc-0.12: Data encoding library

Codec.Binary.Base85

Description

Implemented as described at http://en.wikipedia.org/wiki/Ascii85.

Further documentation and information can be found at http://www.haskell.org/haskellwiki/Library/Data_encoding.

Synopsis

Documentation

encode :: [Word8] -> StringSource

Encode data.

The result will not be enclosed in <~ ~>.

decode :: String -> Maybe [Word8]Source

Decode data (strict).

The input must not be enclosed in <~ ~>.

decode' :: String -> [Maybe Word8]Source

Decode data (lazy).

The input must not be enclosed in <~ ~>.

chopSource

Arguments

:: Int

length of individual lines

-> String 
-> [String] 

Chop up a string in parts.

The length given is rounded down to the nearest multiple of 5.

unchop :: [String] -> StringSource

Concatenate the strings into one long string.