>>> 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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to