HN2new | past | comments | ask | show | jobs | submitlogin

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-C...

    import           Data.Char             (isAlpha, isLower, isSpace)
    import qualified Data.Text             as T
giving you e.g.

    textIsAllSpace t = T.all isSpace t


Important 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: