paf31 / purescript-behaviors

A simple push-pull FRP implementation
MIT License
133 stars 22 forks source link

Add the `Filterable` typeclass to Event #12

Closed i-am-tom closed 7 years ago

i-am-tom commented 7 years ago

Previously, the Event type came with filter and mapMaybe. However, these both existed within Filterable, and the partition functions could also be implemented.

This PR implements the Filterable interface, and re-exports the Filterable module from FRP.Event.

paf31 commented 7 years ago

Since this is a breaking change, I'll merge it once the when PR is finished.

i-am-tom commented 7 years ago

Merged this one into #11 so I could use some of the Filterable stuff. Will close this PR and move to that one :)