Skip to content

why is IReader using String instead of Text? #432

Open

Description

@marcosh

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?

Activity

  1. Lysxia commented on May 15, 2022

    @Lysxia
    Contributor

    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.

  2. added
    question
    on May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions