A bunch of Scala utilities I've found myself writing that I haven't (yet) decided to spin out into their own projects.
val tmmUtilsVersion = "0.9.2"
libraryDependencies += "au.id.tmm.tmm-utils" %% "tmm-utils-cats" % tmmUtilsVersion // Cats utilities
libraryDependencies += "au.id.tmm.tmm-utils" %% "tmm-utils-cats-effect" % tmmUtilsVersion // Cats-effect utilities
libraryDependencies += "au.id.tmm.tmm-utils" %% "tmm-utils-circe" % tmmUtilsVersion // Circe hashing
libraryDependencies += "au.id.tmm.tmm-utils" %% "tmm-utils-errors" % tmmUtilsVersion // Errors
libraryDependencies += "au.id.tmm.tmm-utils" %% "tmm-utils-syntax" % tmmUtilsVersion // Syntax utils
libraryDependencies += "au.id.tmm.tmm-utils" %% "tmm-utils-testing-core" % tmmUtilsVersion % Test // Test utilities
libraryDependencies += "au.id.tmm.tmm-utils" %% "tmm-utils-testing-cats" % tmmUtilsVersion % Test // Cats instances for tests
libraryDependencies += "au.id.tmm.tmm-utils" %% "tmm-utils-testing-scalacheck" % tmmUtilsVersion % Test // Scalacheck instances for tests
Some utilities for interaction with the cats-core
library
Some type aliases and extension methods for dealing with types like Either[Throwable, A]
.
Some utilities relating to circe
JreVersionDependentFlatSpec
, which provides utilities for ignoring tests based on the Java versionau.id.tmm.utilities.testing.syntax
, which provides syntax to replace the oldright.get
method onEither
- A set of ADTs that might be useful as test data (
Animal
,Fruit
,CoinToss
,Planet
andTrafficLight
)
Some general syntax extensions.
import au.id.tmm.utilities.syntax.tuples._
val tuple: String -> Int = "hello" -> 5
val tuples: List[String -> Int] = List(
"hello" -> 1,
"world" -> 2,
)