Talk:Library/Data encoding

From HaskellWiki
Revision as of 18:44, 21 October 2007 by MagnusTherning (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Saizan (IRC) suggested: “what about using phatom types to annotate the encoding and use a typeclass to unify the interfaces?” Magnus.therning

Some discussion has taken place at [1]. Magnus.therning 11:03, 19 October 2007 (UTC)

apfelmus pointed out that decoding must be allowed to fail (e.g. using Maybe). Magnus.therning 11:03, 19 October 2007 (UTC)

decode now has the type String -> Maybe [Word8]. MagnusTherning 18:44, 21 October 2007 (UTC)