Skip to content

Commit

Permalink
Make DecodingError[E] type class contravariant
Browse files Browse the repository at this point in the history
  • Loading branch information
sirthias committed Jul 8, 2024
1 parent 1024d69 commit 592b33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/io/bullet/borer/Decoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ object Decoder extends LowPrioDecoders:
/**
* Type class for turning arbitrary errors into decoding failures.
*/
trait DecodingError[E]:
trait DecodingError[-E]:
def raise(error: E, reader: Reader): Nothing

object DecodingError:
Expand Down

0 comments on commit 592b33b

Please sign in to comment.