- https://haskell-lang.org/tutorial/string-types
- http://blog.ezyang.com/2010/08/strings-in-haskell/
- reddit discussion of performance problem
- https://mmhaskell.com/blog/2017/5/15/untangling-haskells-strings
- Beware of readFile (encoding issues)
- String is in base
- bytestring
- text
- utf8-string
- compact-string
There are (at least) 5 string types in Haskell but not the "ideal" one. It seems it would be nice to have a string with an in-memory UTF-8 representation (probably both strict and lazy versions). It seems I'm not alone.
Could be that utf8-string is that string type. However, this one doesn't have fusion AFAIK. Also, there seems to be the issue of whether to use a pinned ByteString or not (for better GC properties).