strip cleanup

This commit is contained in:
Simon Michael 2009-03-15 03:57:19 +00:00
parent f1ab2fcdbb
commit 26594287cc

View File

@ -46,8 +46,7 @@ import Text.ParserCombinators.Parsec
lowercase = map toLower
uppercase = map toUpper
strip = dropspaces . reverse . dropspaces . reverse
where dropspaces = dropWhile (`elem` " \t")
strip = dropws . reverse . dropws . reverse where dropws = dropWhile (`elem` " \t")
elideLeft width s =
case length s > width of