-- sum a list of numbers -- having separate definitions does not work in ghci interpreter sumList [] = 0 sumList (x:xs) = x + (sumList xs)