monix/newtypes
{ "createdAt": "2021-08-28T13:05:05Z", "defaultBranch": "main", "description": "Macro-free helpers for defining newtypes in Scala, cross-compiled to Scala 3.", "fullName": "monix/newtypes", "homepage": "https://newtypes.monix.io/", "language": "Scala", "name": "newtypes", "pushedAt": "2024-09-07T15:18:57Z", "stargazersCount": 88, "topics": [], "updatedAt": "2025-11-25T01:06:22Z", "url": "https://github.com/monix/newtypes"}Monix’s Newtypes
Section titled “Monix’s Newtypes”Macro-free helpers for defining newtypes in Scala, cross-compiled to Scala 3.
The packages are published on Maven Central.
libraryDependencies += "io.monix" %% "newtypes-core" % "0.3.0"For the Circe integration:
// For Circe version 0.14.xlibraryDependencies += "io.monix" %% "newtypes-circe-v0-14" % "0.3.0"For the PureConfig integration:
// For PureConfig version 0.17.xlibraryDependencies += "io.monix" %% "newtypes-pureconfig-v0-17" % "0.3.0"NOTE: the version scheme is set to early-semver.
Documentation
Section titled “Documentation”Acknowledgements
Section titled “Acknowledgements”Encoding was shamelessly copied from the scala-newtype project by Cary Robbins et al.
Contributing
Section titled “Contributing”This project welcomes contributions from anybody wishing to participate. All code or documentation that is provided must be licensed with the same license that Newtypes is licensed with (Apache 2.0, see [LICENCE]!(./LICENSE.md)).
People are expected to follow the [Scala Code of Conduct]!(./CODE_OF_CONDUCT.md) when discussing Newtypes on GitHub, Gitter channel, or other venues.
Feel free to open an issue if you notice a bug, have an idea for a feature, or have a question about the code. Pull requests are also gladly accepted. For more information, check out the [contributor guide]!(./CONTRIBUTING.md).
License
Section titled “License”All code in this repository is licensed under the Apache License, Version 2.0. See [LICENCE]!(./LICENSE.md).