packages feed

pandora-0.2.0: Pandora/Pattern/Functor/Pointable.hs

module Pandora.Pattern.Functor.Pointable (Pointable (..)) where

import Pandora.Core.Morphism ((!))
import Pandora.Pattern.Functor.Covariant (Covariant)

class Covariant t => Pointable t where
	point :: a -> t a

instance Pointable ((->) e) where
	point = (!)