Module
Data.Monoid.MList
- Package
- purescript-monoid-extras
- Repository
- mikesol/purescript-monoid-extras
#Includes Source
class Includes l a where
The relation @l Includes a@ holds when @a@ is the type of an element
Members
inj :: a -> l
Inject a value into an otherwise empty heterogeneous list.
get :: l -> Maybe a
Get the value of type @a@ from a heterogeneous list, if there
alt :: (Maybe a -> Maybe a) -> l -> l
Alter the value of type @a@ by applying the given function to it.
The /empty/ heterogeneous list of type @l@. Of course, @empty