I'm new to Haskell and trying to see how I can write function that will take two integers and produce a list of all integers within that range.
Here's what I have so far but no luck.
rangeList :: Integer -> Integer -> [Integer]
rangeList n m
| n == m = []
| otherwise = n : n + (rangeList n (m-1))