Solution for assignment 'FLAMASTE' (Haskell).