-
Notifications
You must be signed in to change notification settings - Fork 0
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
Error composition #2
Comments
Also think about Brandon Barker Jun 18th at 6:07 PM parsonsmatt:haskell_logo_purple: 1 day ago parsonsmatt:haskell_logo_purple: 1 day ago parsonsmatt:haskell_logo_purple: 1 day ago Brandon Barker 1 day ago Brandon Barker 1 day ago Brandon Barker 1 day ago parsonsmatt:haskell_logo_purple: 1 day ago parsonsmatt:haskell_logo_purple: 1 day ago Brandon Barker 1 day ago parsonsmatt:haskell_logo_purple: 1 day ago class Is a b where
put :: a -> b
get :: b -> Maybe a And this is nearly exactly how the Exception class looks: class Exception e where
toException :: e -> SomeException
fromException :: SomeException -> Maybe e
displayException :: e -> String |
Currently error composition is left as an exercise to the user :-).
Things to try:
The text was updated successfully, but these errors were encountered: