Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/PreludeList/Words.hs
module Prelude where import Char(isSpace) words :: String -> [String] words s = case dropWhile isSpace s of [] -> [] s' -> w : words s'' where (w, s'') = break isSpace s'