pandora-0.1.2: A box of patterns and paradigms

Safe HaskellSafe
LanguageHaskell2010

Pandora.Paradigm.Structure.Property.Hollow

Documentation

class Hollow t where Source #

Methods

hollow :: r -> (Cofree t a -> r) -> (Cofree :>: t) a -> r Source #

Destructor based on emptiness check

Instances
Hollow Edges Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Concrete.Graph

Methods

hollow :: r -> (Cofree Edges a -> r) -> (Cofree :>: Edges) a -> r Source #

Hollow Maybe Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Concrete.Stack

Methods

hollow :: r -> (Cofree Maybe a -> r) -> (Cofree :>: Maybe) a -> r Source #