use isSpace in lstrip (#441)

This commit is contained in:
Shubham Lagwankar 2016-12-20 12:29:12 -05:00 committed by Simon Michael
parent 282e85c602
commit 37b7ebfe22

View File

@ -64,7 +64,7 @@ strip = lstrip . rstrip
-- | Remove leading whitespace.
lstrip :: String -> String
lstrip = dropWhile (`elem` " \t") :: String -> String -- XXX isSpace ?
lstrip = dropWhile isSpace
-- | Remove trailing whitespace.
rstrip :: String -> String