4 ms·
Yeah, that doesn't give high hopes for this book teaching best practices :/ If you don't want to depend on text-icu, there is support for more Unicode space ch
by unhammer 10y ago
Yeah, that doesn't give high hopes for this book teaching best practices :/
If you don't want to depend on text-icu, there is support for more Unicode space characters in https://hackage.haskell.org/package/base-4.8.2.0/docs/Data-Char.html#v:isSpace https://hackage.haskell.org/package/base-4.8.2.0/docs/Data-C...
import Data.Char (isAlpha, isLower, isSpace)
import qualified Data.Text as T
giving you e.g.
textIsAllSpace t = T.all isSpace t
- gh02t 10y agoImportant note for non-Haskellers: the library OP is talking about is part of the standard base libraries usually distributed with GHC. `text-icu`, while excellent, is not.