Skip to content

Consider adding .rei files and hiding unsafe constructors for all data types #1

Description

@andywhite37

In relude-parse, @mlms13 added .rei files for the "extra" parser types that we have, so that we can have more safety and explicitness around how one can construct values of a certain type.

The .rei files make the types abstract, hide the data constructors, and only allow construction of values through parse functions, or through unsafeMake escape hatches, which throw exceptions for invalid input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions