bundled c provides a uniform structure for bundling a type equipped with a type class.

We provide category instances for these in unbundled_hom.lean (for categories with unbundled homs, e.g. topological spaces) and in bundled_hom.lean (for categories with bundled homs, e.g. monoids).


category_theory.bundled

bundled is a type bundled with a type class instance for that type. Only the type class is exposed as a parameter.

category_theory.bundled.of

A generic function for lifting a type equipped with an instance to a bundled object.

category_theory.bundled.map

Map over the bundled structure