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

UX: Result is clearly a monad. Write an instance and write a demo #2

Open
2 of 4 tasks
cognivore opened this issue Sep 19, 2022 · 0 comments
Open
2 of 4 tasks

Comments

@cognivore
Copy link
Contributor

cognivore commented Sep 19, 2022

Why?

https://github.com/doma-engineering/uptight/blob/main/lib/uptight/base.ex#L99 here we use continuations with a fail. This is a monadic or at least applicative operation.

What?

  • See witchcraft docs
  • Use monad from there
  • Rewrite Base to use monadic computations
  • Mention this example in README
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

No branches or pull requests

1 participant