<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Mar 28, 2011, at 12:05 PM, Christopher Done wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8">On 28 March 2011 17:55, malcolm.wallace&nbsp;<span dir="ltr">&lt;<a href="mailto:malcolm.wallace@me.com">malcolm.wallace@me.com</a>&gt;</span>&nbsp;wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; "> <div><div>Does anyone else think it odd that Prelude.words will break a string at a non-breaking space?</div><div><br></div><div>Prelude&gt; words "abc def\xA0ghi"</div><div>["abc","def","ghi"]</div> </div></blockquote><div><br></div>I think it's predictable, isSpace (which words is based on) is based on generalCategory, which returns the proper Unicode category:<div><br></div><div><div>λ&gt; generalCategory '\xa0'</div> <div>Space</div></div></blockquote><br></div><div>I agree, and I also agree that it would make sense the other way (not breaking on non-breaking spaces). &nbsp;Perhaps it would be a good idea to add a remark to the documentation which specifies the treatment of non-breaking spaces.</div><br><div>-- James</div></body></html>