Skip to content

Attach notification type to db in notify-listen-beam #187

Open
@madeline-os

Description

Consider

class HasChangeNotification n a | a -> n where
  changeNotification :: DatabaseEntity be db (TableEntity a) -> n (Change a)

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 database db. This would reduce the tedium and increase the clarity of instance declarations for this class.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions