In the following Hasekll code,
func1 :: Int -> [Int]
func1 m = aux 2
where aux h =
| length (func2 h) >= m = take m (func2 h)
| otherwise = aux (h + 100)
the GHC gives error of
parse error (possibly incorrect indentation or mismatched brackets)
|
15 | | length (primes h) >= m = take m (primes h)
| ^
Compilation failed.
I didn't use tabs but instead two spaces consistently for indentation. I also retyped the whole function manually once in case I accidentally mixed tabs and spaces at some point. However, I still couldn't figure where this error comes from after about half an hour reading rules on indentation.