
"Show" is for debug output. It's not a generic "to_string". See this thread
[1] from last week for more info.
- Clark
[1] https://groups.google.com/forum/#!topic/haskell-cafe/32EeI96b1VQ
On Wed, Mar 5, 2014 at 4:43 PM,
Hello!
I'm sure this has been answered many times before, but I can't find an explanation for this behavior anywhere. The question I have is a general one regarding 'show'. Why does
main = do putStrLn "ü"
➜ ~ runhaskell test.hs ü
and:
main = do putStrLn $ show "ü"
➜ ~ runhaskell test.hs "\252"
Thank you all for an enlightening answer already!
Best,
k _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Clark. Key ID : 0x78099922 Fingerprint: B292 493C 51AE F3AB D016 DD04 E5E3 C36F 5534 F907