Skip to content

use Data.TaggedError as error handling example #1171

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

collinstevens
Copy link

@collinstevens collinstevens commented Jul 3, 2025

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

The basic example for Effect error handling has been updated to use Data.TaggedError instead of a manual class definition with a tag property.

Effect should be showing the preferred way to write code when providing examples.

Before,
before

After,
after

Copy link

vercel bot commented Jul 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website-landing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2025 8:51am
website-proxy ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2025 8:51am

Copy link

vercel bot commented Jul 3, 2025

@collinstevens is attempting to deploy a commit to the Effect Team on Vercel.

A member of the Team first needs to authorize it.

@collinstevens collinstevens force-pushed the use-data-tagged-error-in-basic-example branch from a3948df to ee3f791 Compare July 3, 2025 08:52
Copy link

vercel bot commented Jul 3, 2025

Deployment failed with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

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