Use mapM instead of implementing a slower version of it

This commit is contained in:
Joseph C. Sible 2020-02-09 19:33:36 -05:00
parent 1e32139f66
commit cb01cbf7eb
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ checkWrongArithmeticAssignment params (T_SimpleCommand id (T_Assignment _ _ _ _
insertRef _ = Prelude.id
getNormalString (T_NormalWord _ words) = do
parts <- foldl (liftM2 (\x y -> x ++ [y])) (Just []) $ map getLiterals words
parts <- mapM getLiterals words
return $ concat parts
getNormalString _ = Nothing