-
Notifications
You must be signed in to change notification settings - Fork 6
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
Switch to tagless final API #14
Milestone
Comments
Renamed the ticket to be consistent with other client-libraries snowplow/iglu-scala-client#113 |
Closed
chuwy
added a commit
that referenced
this issue
Apr 10, 2019
chuwy
added a commit
that referenced
this issue
Jun 9, 2020
chuwy
added a commit
that referenced
this issue
Jun 9, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since we need abstract over effects in all our libraries
IO
-like for general purpose and strictId
/Either
for Beam, we cannot haveSync
in type signatures anymore and hence genericF[_]
is our only option.Applications such as Iglu Resolver or Scala Weather will need to require its their own
Cache
typeclass:In lru-map codebase this can be implemented as following:
The biggest downside is that we'll have to make above interpreters implicit by ourselves after
size
is known.Example (gives different results for 0 and non-0 sizes):
The text was updated successfully, but these errors were encountered: