constraint-classes-0.3.0: Prelude classes using ConstraintKinds

Safe HaskellNone
LanguageHaskell2010

Control.ConstraintClasses

Documentation

class CFunctor f where Source #

Associated Types

type CFun f a :: Constraint Source #

Methods

_fmap :: (CFun f a, CFun f b) => (a -> b) -> f a -> f b Source #

class CFoldable f where Source #

Associated Types

type CFol f a :: Constraint Source #

Methods

_foldr :: CFol f a => (a -> b -> b) -> b -> f a -> b Source #

_foldr' :: CFol f a => (a -> b -> b) -> b -> f a -> b Source #

_foldl :: CFol f b => (a -> b -> a) -> a -> f b -> a Source #

_foldl' :: CFol f b => (a -> b -> a) -> a -> f b -> a Source #

_fold :: (CFol f m, Monoid m) => f m -> m Source #

_foldMap :: (CFol f a, CFol f m, Monoid m) => (a -> m) -> f a -> m Source #

_length :: CFol f a => f a -> Int Source #

_mapM :: (Monad m, CFol f a, CFol f b) => (a -> m b) -> f a -> m (f b) Source #

_forM :: (Monad m, CFol f a, CFol f b) => f a -> (a -> m b) -> m (f b) Source #

_mapM_ :: (Monad m, CFol f a) => (a -> m b) -> f a -> m () Source #

_forM_ :: (Monad m, CFol f a) => f a -> (a -> m b) -> m () Source #