WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

Safe HaskellSafe-Infered

WASH.Utility.RFC2397

Synopsis

Documentation

data ENC Source

Constructors

BASE64 
URL 

Instances

Eq ENC 

encode :: (String, String) -> StringSource

maps (mediatype, contents) to data URL

decode :: String -> Maybe (String, String)Source

maps data URL to Just (mediatype, contents) or Nothing in case of a syntax error.

decodeContents :: [Char] -> Maybe ([Char], String)Source

decodePrefix :: [Char] -> String -> Maybe ([Char], String)Source

decodeData :: [[Char]] -> ENC -> String -> Maybe ([Char], String)Source

breakList :: (x -> Bool) -> [x] -> [[x]]Source

unparse :: [[Char]] -> [Char]Source