[Haskell-beginners] Manage the type of a variable in the show implementation

Kim-Ee Yeoh ky3 at atamo.com
Wed Jul 23 12:42:01 UTC 2014


On Wed, Jul 23, 2014 at 7:40 PM, Chaddaï Fouché <chaddai.fouche at gmail.com>
wrote:

> Anyway, using Show for this is wrong, Show is supposed to translate
> datatypes in a form you could copy in your code to get the value back, it
> isn't supposed to be for presentation. You have libraries that do pretty
> formatting better.


Very insightful, thanks!

-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140723/df6977c3/attachment.html>


More information about the Beginners mailing list