Umbrella for various Scala projects started by two passionate programmers:@krzemin and@MateuszKubuszok.
Chimney is a library transforming an instance of one case class to another, when fields in both classes are very similar. If you have a case of:
Take a look atChimney’s documentation.
Elm code generator based on Scalaendpoints library.
The project provides:
See also projectREADME.
Generic derivation based macros for JsonSchema type class of Scalaendpoints library.
Endpoints havegeneric derivation of json schemasbased onShapeless library.
This project provides fully compatible, drop-in replacement that doesn’t use Shapeless, but Scala macros directly.This approach has several advantages:
HList/Coproduct is not requiredSee alsoREADME.md.
If passing arguments explicily is below you and runtime reflection fill you with distaste try out implicit-based dependency injection on steroids.
You can find details atPulp’s documentation.
Overly-Complicated Database Query takes a case class defined by you and turns it into:
INSERT while the others will useDEFAULTsBasically, it creates a repository basing on your (higher-kinded) case class.
Additionally, repositories can be joined together to fetch tuples of objects.
All returned results areDoobie queries.
You can find details atOCDQuery’s documentation.
If you missed some syntax for logging with Cats Effect, then here it is.
You can find details atlog4effect’s documentation.
In Scala you might meet many different implementations of enums:
scala.Enumeration,enumeratum as the previous one on steroids,enum type which use static methods and has no companion object.You are in control of what implementationyou pick, but you have no control overwhatother people use. So if you had to use APIs using many differentimplementations how would you handle common code?
With a type class.
You can find details atEnumz’s documentation.