Skip to content

Tyre breaking changes #17

@EmileTrotignon

Description

@EmileTrotignon

I am in the process of releasing a new tyre version that has breaking changes, and the opam CI warned me that this package was breaking.

THe CI is breaking because Tyre.t now has 2 parameters instead of one. Instead of a Tyre.t you can likely use (_, a) Tyre.t. The first parameter is just here to track whether the regexp is evaluable or not.

The other thing that is likely to break is uses of alt. alt used to be of type (_, 'a) t -> (_, 'b) t -> (_, ['Left of 'a | Right of 'b]) t.

Now it has type (_, 'a) t -> (_, 'a) t -> (non_evaluable, 'a) t. The intended replacement is val either: ('e, 'a) t -> ('e, 'b) t -> ('e, ('a, 'b) Either.t) t

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