haskell: Problem 2

Signed-off-by: Pekka Enberg <penberg@iki.fi>