first-class-instances-0.1.0.0: First class typeclass instances

Safe HaskellNone
LanguageHaskell2010

FCI.Data.Functor

Synopsis

Documentation

pattern Functor :: (forall (a :: Type) (b :: Type). (a -> b) -> f a -> f b) -> (forall (a :: Type) (b :: Type). a -> f b -> f a) -> Dict (Functor (f :: Type -> Type)) Source #

$sel:_fmap:Functor :: Dict (Functor (f :: Type -> Type)) -> forall (a :: Type) (b :: Type). (a -> b) -> f a -> f b Source #

$sel:|<$:Functor :: Dict (Functor (f :: Type -> Type)) -> forall (a :: Type) (b :: Type). a -> f b -> f a Source #

fmapFunctor :: (forall a b. (a -> b) -> f a -> f b) -> Inst (Functor f) Source #

Creates Dict instance from mapping function.

coerceFunctor :: forall f. Newtype f => Inst (Functor f) Source #

Creates Dict instance for any type that can be "coerced out".