Next Atypical Types 29

Types in Haskell

Lists

        [True, False, True]             [Bool]
        [True, False, True, False]      [Bool]
        [1,2,3,4,5]                     [Integer]
        ['O', 'O', 'P', 'S', 'L', 'A']  [Char]
        "OOPSLA"                        [Char]
        [ [1,2,3], [4,6], [0,233] ]     [[Integer]]
        [ "I", "like", "pie" ]          [[Char]]
        [17, "foo"]                     Error


Next Copyright © 1999,2008 Mark Dominus