Module

Data.Functor.Coproduct.Inject

#Inject

class Inject f g  where

Members

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

Instances

Modules