Skip to content

This Scala 3 library provides a support to easily define practical opaque types serializable using upickle.

License

Notifications You must be signed in to change notification settings

encalmo/opaque-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Maven Central Version Scaladoc

opaque-type

This Scala 3 library provides a support to easily define opaque types serializable using upickle.

Table of contents

Dependencies

Usage

Use with SBT

libraryDependencies += "org.encalmo" %% "opaque-type" % "0.9.2"

or with SCALA-CLI

//> using dep org.encalmo::opaque-type:0.9.2

Example

A number of common opaque types is included as an example:

Project content

├── .github
│   └── workflows
│       ├── pages.yaml
│       ├── release.yaml
│       └── test.yaml
│
├── .gitignore
├── .scalafmt.conf
├── Amount.scala
├── AmountDecimal.scala
├── AmountDecimalString.scala
├── AmountString.scala
├── Bps.scala
├── City.scala
├── Country.scala
├── Currency.scala
├── DateOfBirth.scala
├── EmailAddress.scala
├── Fee.scala
├── FirstName.scala
├── IPAddress.scala
├── IsoDateString.scala
├── LastName.scala
├── LICENSE
├── LocalPhoneNumber.scala
├── MathUtils.scala
├── MathUtils.test.scala
├── OpaqueType.scala
├── OpaqueType.test.scala
├── Percentage.scala
├── PhoneNumber.scala
├── PhoneNumberCountryPrefix.scala
├── project.scala
├── README.md
└── test.sh

About

This Scala 3 library provides a support to easily define practical opaque types serializable using upickle.

Topics

Resources

License

Stars

Watchers

Forks