Difference between revisions of "Show and Read instance"
Jump to navigation
Jump to search
(a new reference) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
The next question is: |
The next question is: |
||
− | Shall <hask>show</hask> emit valid Haskell code, |
+ | Shall <hask>show</hask> emit valid Haskell code, that represents the shown data, |
⚫ | |||
− | that represents the shown data, |
||
⚫ | |||
− | [http://www.haskell.org/pipermail/libraries/2005-March/003496.html Meaning of Show and Read I] |
+ | * [http://www.haskell.org/pipermail/libraries/2005-March/003496.html Meaning of Show and Read I] |
− | [http://www.haskell.org/pipermail/libraries/2005-March/003497.html Meaning of Show and Read II] |
+ | * [http://www.haskell.org/pipermail/libraries/2005-March/003497.html Meaning of Show and Read II] |
⚫ | |||
− | |||
− | [http://www.haskell.org/pipermail/libraries/2006-November/006257.html Raw vs. Show] |
+ | * [http://www.haskell.org/pipermail/libraries/2006-November/006257.html Raw vs. Show] |
− | |||
⚫ | |||
[[Category:Style]] |
[[Category:Style]] |
Latest revision as of 14:32, 13 November 2006
What shall the Show and Read instances show and parse, respectively? It is certainly a good thing, if
read
parses, whatshow
shows.
The next question is:
Shall show
emit valid Haskell code, that represents the shown data,
or shall it show eye-candy, maybe even formatted in a line-oriented way.