https://github.com/47degrees/type-class-derivation-scala3
Type class derivation in Scala 3
https://github.com/47degrees/type-class-derivation-scala3
Last synced: over 1 year ago
JSON representation
Type class derivation in Scala 3
- Host: GitHub
- URL: https://github.com/47degrees/type-class-derivation-scala3
- Owner: 47degrees
- Created: 2023-01-18T16:35:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T15:20:14.000Z (over 3 years ago)
- Last Synced: 2025-02-03T14:42:45.858Z (over 1 year ago)
- Language: Scala
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Type class Derivation in Scala 3
This repo shows how to derive type class instances in Scala 3. There are two approaches here. One of them uses the [Scala 3 framework](https://docs.scala-lang.org/scala3/reference/contextual/derivation.html), and the other uses [Shapeless 3](https://github.com/typelevel/shapeless-3). Both approaches take the `Show` type class as an example.
This is the companion repository of the [How to derive type class instances with Shapeless 3](https://xebia.com/blog/how-to-derive-type-class-instances-with-shapeless-3/) blog post.