Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmccarthy/tmmutils
Some Scala utilities
https://github.com/tmccarthy/tmmutils
Last synced: about 1 month ago
JSON representation
Some Scala utilities
- Host: GitHub
- URL: https://github.com/tmccarthy/tmmutils
- Owner: tmccarthy
- License: apache-2.0
- Created: 2016-08-24T08:02:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T23:39:41.000Z (over 2 years ago)
- Last Synced: 2023-07-31T19:44:12.963Z (over 1 year ago)
- Language: Scala
- Size: 595 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `tmmUtils`
[![Continuous Integration](https://github.com/tmccarthy/tmmUtils/actions/workflows/ci.yml/badge.svg)](https://github.com/tmccarthy/tmmUtils/actions/workflows/ci.yml)
[![Maven Central](https://img.shields.io/maven-central/v/au.id.tmm.tmm-utils/tmm-utils-syntax_2.13.svg)](https://repo.maven.apache.org/maven2/au/id/tmm/tmm-utils/tmm-utils-syntax_2.13/)A bunch of Scala utilities I've found myself writing that I haven't (yet) decided to spin out into
their own projects.```scala
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
```## Cats
Some utilities for interaction with the [`cats-core`](https://github.com/typelevel/cats) library
## Errors
Some type aliases and extension methods for dealing with types like `Either[Throwable, A]`.
## Circe
Some utilities relating to [`circe`](https://github.com/circe/circe)
## Testing
* `JreVersionDependentFlatSpec`, which provides utilities for ignoring tests based on the Java version
* `au.id.tmm.utilities.testing.syntax`, which provides syntax to replace the old `right.get` method on `Either`
* A set of ADTs that might be useful as test data (`Animal`, `Fruit`, `CoinToss`, `Planet` and `TrafficLight`)## Syntax
Some general syntax extensions.
#### Tuple syntax
```scala
import au.id.tmm.utilities.syntax.tuples._
val tuple: String -> Int = "hello" -> 5
val tuples: List[String -> Int] = List(
"hello" -> 1,
"world" -> 2,
)```