я следующий код:странная ошибка в Haskell о выемке, если-то-еще
foo :: Int -> [String] -> [(FilePath, Integer)] -> IO Int
foo _ [] _ = return 4
foo _ _ [] = return 5
foo n nameREs pretendentFilesWithSizes = do
result <- (bar n (head nameREs) pretendentFilesWithSizes)
if result == 0
then return 0 -- <========================================== here is the error
else foo n (tail nameREs) pretendentFilesWithSizes
Я получаю ошибку на линии с комментарием выше, ошибка:
aaa.hs:56:2:
parse error (possibly incorrect indentation)
Я работаю с emacs, нет пробелов, и я не понимаю, что я делал неправильно.
Он решил проблему, 10x! – Drakosha