Skip to content

Are all instances provided by the Cats module valid? #94

Closed Answered by gvolpe
Iltotore asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that's a good point. Adding validation to derived typeclass instances may be tricky, we'd need some type-level machinery. You can see what Refined does here: https://github.com/fthomas/refined/blob/master/modules/cats/shared/src/main/scala/eu/timepit/refined/cats/package.scala#L105

There are a lot of unsafe refinements, not sure if this is even possible.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Iltotore
Comment options

Iltotore Jan 3, 2023
Maintainer Author

@gvolpe
Comment options

@Iltotore
Comment options

Iltotore Jan 3, 2023
Maintainer Author

@gvolpe
Comment options

Answer selected by Iltotore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants