A helper for implicit lookups that require the refined inner abstract type of a concrete primitive implementation produced by an implicit macro.
A helper for implicit lookups that require the refined inner abstract type of a concrete primitive implementation produced by an implicit macro. This is useful to eliminate a compiler warning produced for map columns, where we need to manually cast values to their PrimitiveType after extraction just to please the compiler.
Convenience method to materialise the context bound and return a reference to it.
Convenience method to materialise the context bound and return a reference to it. This is somewhat shorter syntax than using implicitly.
The type of the primitive to retrieve.
A reference to a concrete materialised implementation of a primitive for the given type.
Derives primitives and encodings for a non standard type.
Derives primitives and encodings for a non standard type.
The type you want to derive a primitive for.
The source type of the primitive, must already have a primitive defined for it.
The function that converts a Target instance to a Source instance.
The function that converts a Source instance to a Target instance.
A new primitive that can interact with the target type.
!! Warning !! Black magic going on.
!! Warning !! Black magic going on. This will use the excellent macro compat library to macro materialise an instance of the required primitive based on the type argument. If this does not highlight properly in your IDE, fear not, it works on my machine :)
The type parameter to materialise a primitive for.
A concrete instance of a primitive, materialised via implicit blackbox macros.