aboutsummaryrefslogtreecommitdiff
path: root/ch02/2_a_1.txt
blob: 26ad22b2a02e82aeff777e69b9709e5c595cf746 (plain)
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]])]