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

provide a non monadic interface too #12

Open
2 tasks
craff opened this issue Jul 3, 2023 · 0 comments
Open
2 tasks

provide a non monadic interface too #12

craff opened this issue Jul 3, 2023 · 0 comments

Comments

@craff
Copy link
Contributor

craff commented Jul 3, 2023

Http_cookie should provide a non monadic interface too, raising an exception Error.
This is important as algebraic OCaml's 5.0 effect can replace monads.

Here is the design I propose:

  • As Error are rare, the non monadic could be the default and the monadic function should be wrappers on top of them ?
  • The functions could have the same names in 2 different modules ?

I could submit a PR, if we agree on the design first.

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