RecursiveDo is deprecated under GHC 7.4