Typed companion library for core.match