Finally figure out what is wrong with the indentation
Change from foldr and foldl because it was wrong. foldr does not seem possible too
Using Either seems easier than Maybe
takeWhile using explicit recursion and foldr