text icon indicating copy to clipboard operation
text copied to clipboard

why is `IReader` using `String` instead of `Text`?

Open marcosh opened this issue 2 years ago • 1 comments

IReader is defined as

type IReader t a = t -> Either String (a, t)

What is the reason why it is using String instead of Text for the failure case?

marcosh avatar May 13 '22 13:05 marcosh

I would guess historical reasons, like that fail expects a String, or that libraries before text probably used String already for error messages.

There may be value in making Text really replace uses of String, but that transition seems like it should be decided and coordinated on a global level, starting with a strong enough motivation.

Lysxia avatar May 15 '22 16:05 Lysxia