Module

Data.Functor.Coproduct.Inject

#Inject

class Inject :: forall k. (k -> Type) -> (k -> Type) -> Constraintclass Inject f g  where

Members

  • inj :: forall a. f a -> g a
  • prj :: forall a. g a -> Maybe (f a)

Instances

Modules