Talk:Library/Data encoding
From HaskellWiki
(Difference between revisions)
(Capture of suggestion made on IRC) |
|||
| (One intermediate revision not shown.) | |||
| Line 1: | Line 1: | ||
| - | Saizan (IRC) suggested: “what about using phatom types to annotate the encoding and use a typeclass to unify the interfaces?” | + | Saizan (IRC) suggested: “what about using phatom types to annotate the encoding and use a typeclass to unify the interfaces?” [[User:Magnus.therning|Magnus.therning]] |
| + | :Some discussion has taken place at [http://therning.org/magnus/archives/322]. [[User:Magnus.therning|Magnus.therning]] 11:03, 19 October 2007 (UTC) | ||
| + | |||
| + | apfelmus pointed out that decoding must be allowed to fail (e.g. using <hask>Maybe</hask>). [[User:Magnus.therning|Magnus.therning]] 11:03, 19 October 2007 (UTC) | ||
| + | :<hask>decode</hask> now has the type <hask>String -> Maybe [Word8]</hask>. [[User:MagnusTherning|MagnusTherning]] 18:44, 21 October 2007 (UTC) | ||
Current revision
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)
Maybe
- now has the typedecode. MagnusTherning 18:44, 21 October 2007 (UTC)String -> Maybe [Word8]
