-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Description
If I understand the new programmable type errors, it seems like this instance can be added:
instance zipListIsNotBind
:: Fail "ZipList is not Bind. Any implementation would break the associativity law"
=> Bind ZipList where
bind = crashWith "bind: unreachable"
Also, does this stop the hierarchy? Or can someone take this Bind
instance and use it to make a Monad ZipList
and higher instances?
Metadata
Metadata
Assignees
Labels
No labels