Module

Data.Functor.Coproduct.Inject

Package
purescript-functors
Repository
purescript/purescript-functors

#Inject Source

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