
2 Jan
2009
2 Jan
'09
5:18 p.m.
module Main(main) where main = putStr (show [])
What type is your "[]" here? (...) You may think it's irrelevant, since empty lists are showed the same; but they are not: for example, ([] :: [Char]) would be shown as '""' (empty string).
Of course you're right. Didn't know how to type an empty list. "main = putStr (show ([] :: [Char]))" seems so obvious now. Thanks, Benjamin