Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Scalafix rules for Better Type Inference For ADTs

Mixes Product with Serializable into sealed traits and sealed abstract classes. Does not do anything if either of Product or Serializable is already mixed in since it assumes that this has been done on purpose.

Created solely for education purposes. Use at your own risk!

Installation & Usage

Either clone the repo and then in the scalafix directory run sbt publishLocal and then use it in your build like so

ThisBuild / scalafixDependencies += "com.devinsideyou" %% "scalafix" % "0.0.1-SNAPSHOT"

and then run it with scalafix BetterTypeInferenceForAdts from sbt or run directly from github (slower) with

scalafix --rules=github:DevInsideYou/better-type-inference-for-adts

Watch on YouTube

You can’t perform that action at this time.