-
Notifications
You must be signed in to change notification settings - Fork 17
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
Attach notification type to db in notify-listen-beam #187
Comments
proposed new class head: class HasChangeNotification be n db | db be -> n where
changeNotification :: DatabaseEntity be db (TableEntity a) -> n (Change a) |
@danbornside's version seems fair to me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider
It is difficult to imagine a scenario where one would want to use a different notification type (
n
above) for two different tables (a
above). What is far more likely is that there is one notification type for the entire databasedb
. This would reduce the tedium and increase the clarity of instance declarations for this class.The text was updated successfully, but these errors were encountered: