free package:compdata

Construct a catamorphism for contexts over f with holes of type a, from the given algebra.
Construct a catamorphism for contexts over f with holes of type b, from the given algebra.
Construct a monadic catamorphism for contexts over f with holes of type a, from the given monadic algebra.
Construct a monadic catamorphism for contexts over f with holes of type b, from the given monadic algebra.