[Haskell-cafe] bug in Prelude.words?

Thomas Davie tom.davie at gmail.com
Mon Mar 28 19:51:44 CEST 2011

On 28 Mar 2011, at 17:20, malcolm.wallace wrote:

>> Consider an HTML page with that "sentence" displayed on it. If you ask the viewer of the page how many words are in the sentence, then surely you will get the answer 3?
> But what about the author?  Surely there is no reason to use a non-breaking space unless they intend it to mean that the characters before and after it belong to the same logical unit-of-comprehension?

I'm not sure that a logical unit-of-comprehension is the same as a word though.  As an aside – in publishing non-breaking spaces are commonly used for other purposes too, for example forcing a word onto a certain line to stop a space river appearing in a paragraph.


More information about the Haskell-Cafe mailing list