one-liner-0.4.1: Constraint-based generics

LicenseBSD-style (see the file LICENSE)
Maintainersjoerd@w3future.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell98

Generics.OneLiner.Functions1

Contents

Description

 

Synopsis

For all instances

fmapADT :: (ADT1 t, Constraints t Functor) => (a -> b) -> t a -> t b Source

foldMapADT :: (ADT1 t, Constraints t Foldable, Monoid m) => (a -> m) -> t a -> m Source

traverseADT :: (ADT1 t, Constraints t Traversable, Applicative f) => (a -> f b) -> t a -> f (t b) Source

For datatypes with one constructor

apADT :: (ADT1Record t, Constraints t Applicative) => t (a -> b) -> t a -> t b Source

bindADT :: (ADT1Record t, Constraints t Monad) => t a -> (a -> t b) -> t b Source

mfixADT :: (ADT1Record t, Constraints t MonadFix) => (a -> t a) -> t a Source