Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate old error methods #147

Merged
merged 1 commit into from
Jan 20, 2023
Merged

Conversation

j-mie6
Copy link
Owner

@j-mie6 j-mie6 commented Jan 20, 2023

Deprecates the old unexpected and ! combinators and adds in unexpectedLegacy for long-term support past 4.3.0. These combinators really don't do the right thing and will both be replaced by improved, but slightly different combinators moving forward.

@j-mie6 j-mie6 merged commit 1c2c434 into staging/4.2 Jan 20, 2023
@j-mie6 j-mie6 deleted the minor/deprecate-error-methods branch January 20, 2023 15:23
j-mie6 added a commit that referenced this pull request Jan 22, 2023
* Version bump to 4.2

* Fixed badges

* Improved `position` API (#146)

* Added positions object

* deprecated old position stuff

* Stopped coverage run unless it's actually needed (pr to master, or on master)

* Fixed CI test coverage skipping

* Apparently base_ref is a different style to ref...

* Changed deprecation for Lexer inheritance to now, backport/4.1 needs to undo its deprecation

* Deprecated old error combinators, added unexpectedLegacy (#147)

* disabled test coverage for deprecated fastfail and fastunexpected

* Replaced deprecated implementations by slow (but stable versions)

* Error pattern combinators (#148)

* Added the VerifiedErrors extension class in patterns object, added correct partial amending semantics

* satisfied MiMA

* Changed names of new combinators, no need to jump through so many hoops now!

* verify -> verified

* Added intrinsic, needs testing

* Added correct partial amend behaviour onto deprecated deoptimised combinators

* Fixed bug where string terminal escapes relabelling

* removed partial amend semantics on verifiedX, because it's evil: we won't be exposing it!

* Added comment about the future improved partial amend

* Fix name of instruction

* Doc stubs

* Add `dislodge` and `amendThenDislodge` combinators (#149)

* Exposed amendThenDislodge and dislodge

* Added tests

* documentation

* Introduce `unexpectedWhenWithReason` (#151)

* Added combinator and generalised machinery

* Removed defunct combinators from lexer

* documentation

* tests written

* Added comment about spanWith, I'm not going to include it for now

* Renamed combinator, it's a bit better with the When at the end

* Documented the 1 indexing

* Added position tests

* position module description

* Added positions to rootdoc

* patterns documentation

* sbt and README updated

* update workflow

* Fixed style issues

* Added tests for verifiedFail

* Full testing of new verified errors combinators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant