Created
July 14, 2022 20:52
-
-
Save majk-p/8745999480b763ff17ff4c2f5d89ce75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using scala "2" | |
//> using lib "eu.timepit::refined:0.10.1" | |
import eu.timepit.refined.auto._ | |
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