-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circe module for json variation #135
Comments
@bplommer Thoughts? |
This is definitely something I think would be good to have. What sort of API do you envisage? I guess the core functionality would be a pair of methods for converting between Circe's |
I thinking along the lines of extension methods for implicit class LaunchDarklyClientExt[F[_]: Monad](private val client: LaunchDarklyClient[F]) {
def circeValueVariation[Ctx: ContextEncoder, A: Encoder: Decoder](
featureKey: String,
context: Ctx,
defaultValue: A,
): F[Decoder.Result[A]] = ??? or Just implicit class LaunchDarklyClientExt[F[_]: MonadThrow](private val client: LaunchDarklyClient[F]) {
def circeValueVariation[Ctx: ContextEncoder, A: Encoder: Decoder](
featureKey: String,
context: Ctx,
defaultValue: A,
): F[A] = ??? // Lift the decoder failure into F |
Would y'all be open to a circe module for json variation to make it easier to work with Json?
The text was updated successfully, but these errors were encountered: