peakachu-0.3.0: Experiemental library for composable interactive programs

Control.FilterCategory

Description

A FilterCategory is a Category that supports mapMaybeC.

In Peakachu, both Program and Backend are instances of FilterCategory.

Documentation

class Category cat => FilterCategory cat whereSource

Methods

flattenC :: cat [a] aSource

arrC :: (a -> b) -> cat a bSource

genericFlattenC :: (FilterCategory cat, Foldable f) => cat (f a) aSource

mapMaybeC :: FilterCategory cat => (a -> Maybe b) -> cat a bSource

filterC :: FilterCategory cat => (a -> Bool) -> cat a aSource