1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-- What are the types of the following expressions? 4 comments -- - False -- - (["foo", "bar"], 'a') -- - [(True, []), (False, [['a']])] -- Let's use ghci to check our answers ghci> :t False False :: Bool ghci> :t (["foo", "bar"], 'a') (["foo", "bar"], 'a') :: ([String], Char) ghci> :t [(True, []), (False, [['a']])] [(True, []), (False, [['a']])] :: [(Bool, [[Char]])]