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

Add Memoizable type class #2

Open
sebfisch opened this issue Jul 29, 2011 · 0 comments
Open

Add Memoizable type class #2

sebfisch opened this issue Jul 29, 2011 · 0 comments

Comments

@sebfisch
Copy link

Although, for many types, there is more than one possible way to implement a Memo function, users may know a preferred way to memoize their own types. For them, it would be convenient to pick the Memo function using overloading rather than passing it around explicitly. (I am such a user.)

Would you accept a patch that adds:

class Memoizable a where
  memo :: Memo a

?

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