Closed programaker closed 6 months ago
When writing a code like: implicit val x: TypedMongoFormat[Something] = io.sphere.mongo.generic.deriveMongoFormat
implicit val x: TypedMongoFormat[Something] = io.sphere.mongo.generic.deriveMongoFormat
or given TypedMongoFormat[Something] = io.sphere.mongo.generic.deriveMongoFormat
given TypedMongoFormat[Something] = io.sphere.mongo.generic.deriveMongoFormat
A compile error happens due to an infinite loop in the derivation process.
This PR aims to fix that, and also add some new features:
inline apply
derives
given
implicit
CI won't work anyway, so I'm closing the PR
When writing a code like:
implicit val x: TypedMongoFormat[Something] = io.sphere.mongo.generic.deriveMongoFormat
or
given TypedMongoFormat[Something] = io.sphere.mongo.generic.deriveMongoFormat
A compile error happens due to an infinite loop in the derivation process.
This PR aims to fix that, and also add some new features:
inline apply
method cats-style to summon an instance at 0 cost.derives
directive also works (at least for Product types).given
,implicit
, automatic).