Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//> using scala "2"
//> using lib "eu.timepit::refined:0.10.1"
import eu.timepit.refined.types.string._
import eu.timepit.refined.types.numeric._
case class OrderLine(product: NonEmptyString, quantity: PosInt)
OrderLine("100", 10)
OrderLine("101", 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment