I get
parse error (possibly incorrect indentation or mismatched brackets)
on the line with | i > j = do swap axs p j
apartition :: Ord a => STArray s Int a -> Int -> Int -> ST s Int
apartition axs p q = do
x <- readArray axs p
let loop i j
| i > j = do swap axs p j
return j
| otherwise = do u <- readArray axs i
if u < x
then do loop (i + 1) j
else do swap axs i j
loop i (j − 1)
loop (p + 1) q
I am really confused about the cause of this, could someone clear things up for me?
doblock, so theinis not necessary. - Willem Van Onsem