Fractal generator in Haskell