transformers-0.5.2.0: Concrete functor and monad transformers

Copyright(c) Ross Paterson 2010
LicenseBSD-style (see the file LICENSE)
MaintainerR.Paterson@city.ac.uk
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Data.Functor.Constant

Description

The constant functor.

Synopsis

Documentation

newtype Constant a b

Constant functor.

Constructors

Constant 

Fields

getConstant :: a
 

Instances

Bifunctor (Constant *) 
Show2 (Constant *) 
Read2 (Constant *) 
Ord2 (Constant *) 
Eq2 (Constant *) 
Functor (Constant * a) 
Monoid a => Applicative (Constant * a) 
Foldable (Constant * a) 
Traversable (Constant * a) 
Show a => Show1 (Constant * a) 
Read a => Read1 (Constant * a) 
Ord a => Ord1 (Constant * a) 
Eq a => Eq1 (Constant * a) 
Eq a => Eq (Constant k a b) 
Ord a => Ord (Constant k a b) 
Read a => Read (Constant k a b) 
Show a => Show (Constant k a b) 
Monoid a => Monoid (Constant k a b)