[Haskell-cafe] cutting long strings into lines

Mark T.B. Carroll mark at ixod.org
Sat Sep 30 22:42:07 EDT 2006

Bertram Felgenhauer <bertram.felgenhauer at googlemail.com> writes:
> I'll venture a guess: The code originally read
> | bestSplit width string =
> |     let wraps = options string
> |     in  last (head wraps : takeWhile ((<= width) . length . fst) wraps)

Version control agrees with you. Next time I'll try compiling whatever
version I find at hand before posting. I knew it worked at one time ... (-:

-- Mark

More information about the Haskell-Cafe mailing list