Hey everyone,
I was wondering if there were concrete blockers to the upstreaming of Data.Text (and associates) into base
. I think it’s high time we stopped settling for String
.
Amongst the positive changes that I can see happening, I’d like to underline two specifically:
-
We change the culture towards a legitimisation of
Text
as part of the basic toolkit of the Haskeller, especially in Cabal projects wheretext
isn’t readily available unless it is added manually to the dependencies. -
New APIs inside of
base
can adoptText
. One of the latest examples is GHC Proposal 330 - Decorate exceptions with backtrace information. The API proposed usesString
but does not seem to do so for the (real and valid) properties of a lazy linked list, but because we cannot depend ontext
frombase
.
Moreover, I am explicitly not talking about replacing pre-existing usages of String
in base
, like FilePath
(as that was raised on Reddit).