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

Fix ad-hoc usage of case expression #202

Merged
merged 2 commits into from
Feb 22, 2022
Merged

Fix ad-hoc usage of case expression #202

merged 2 commits into from
Feb 22, 2022

Conversation

JordanMartinez
Copy link
Contributor

@JordanMartinez JordanMartinez commented Feb 22, 2022

Description of the change

See purescript/purescript#4241. In preparation for v0.15.x, fixes the ad-hoc case expression usage.


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@@ -66,8 +66,8 @@ tail (NonEmptyList nel) = case force nel of _ :| xs -> xs

init :: NonEmptyList ~> L.List
init (NonEmptyList nel) =
case force nel
of x :| xs ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End of an era. What a beauty.

@JordanMartinez JordanMartinez merged commit 5cd6f44 into master Feb 22, 2022
@JordanMartinez JordanMartinez deleted the fixCaseOfUsage branch February 22, 2022 23:45
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.

None yet

2 participants