Changelog

ghci says sum . squares x isn't Int

1
2
3
4
f ::  Int -> Int
f x = sum [1..x] ^ 2 - sum . squares x
			where
				squares x = map (\i -> i^2) [1..x]
4:50: Warning: Avoid lambda
Found:
\ i -> i ^ 2
Why not:
(^ 2)