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

Generalise 'delete' action over type class #366

Open
frasertweedale opened this issue Feb 7, 2020 · 0 comments
Open

Generalise 'delete' action over type class #366

frasertweedale opened this issue Feb 7, 2020 · 0 comments
Labels

Comments

@frasertweedale
Copy link
Member

Deleting the current item from a list is conceptually simple. In case other lists-with-deletable-items
emerge in purebred, we should abstract it over a type class, e.g.

class HasList n => HasEditableList n where               
  allowDeleteLast :: Proxy n -> Bool                     
deleteSelectedItem :: HasEditableList ctx => Action v ctx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants