hlint: span instead of break
----------------------------
> - - (curSpace, afterCurSpace) = break (not . (== ' ')) s
> + (curSpace, afterCurSpace) = span (== ' ') s
> (curWord, afterCurWord) = break (== ' ') afterCurSpace
I've pushed it, although it's a tiny bit sad because we somewhat lose
the symmetry between break and break not. Bah, minor detail and could
be argued that hlint is right and it's cleaner.
Very deliberately not marking this accepted, hoping that darcswatch
will do it for us.
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
|