Note for LI Functional Programming - Week 1
Problem Sheet
Inspecting Some Types in Ghci
*Main> :type not (not (not False))
not (not (not False)) :: Bool*Main> :type (True,False)
(True,False) :: (Bool, Bool)*Main> :type ['a', 'b', 'x']
['a', 'b', 'x'] :: [Char]*Main> :type [(3,4),(4,6)]
[(3,4),(4,6)] :: (Num a, Num b) => [(a, b)]*Main> :type (++)
(++) :: [a] -> [a] -> [a]