Ord package:mixed-types-num

Order ops with generic return type. Originally developed for semi-decidable comparisons that return Kleenean instead of Bool. Use in combination with: import Prelude hiding ((==),(/=),(),(<=),(),(>=),abs,max,min,not,(&&),(||)) import qualified Prelude as P The usual comparison operators are still available using the P prefix.
HSpec properties that each implementation of HasOrder should satisfy.
HSpec properties that each implementation of HasOrder should satisfy.
A Word is an unsigned integral type, with the same size as Int.
unwords joins words with separating spaces (U+0020 SPACE).
>>> unwords ["Lorem", "ipsum", "dolor"]
"Lorem ipsum dolor"
unwords is neither left nor right inverse of words:
>>> words (unwords [" "])
[]

>>> unwords (words "foo\nbar")
"foo bar"
words breaks a string up into a list of words, which were delimited by white space (as defined by isSpace). This function trims any white spaces at the beginning and at the end.
>>> words "Lorem ipsum\ndolor"
["Lorem","ipsum","dolor"]

>>> words " foo bar "
["foo","bar"]