Created
November 24, 2015 17:14
-
-
Save blast-hardcheese/979a305bc7fc86ad66dd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
... | |
type FirstName = (String @@ FirstName.Internal) | |
object FirstName { trait Internal; def apply(value: String): FirstName = value.asInstanceOf[FirstName] } | |
type LastName = (String @@ LastName.Internal) | |
object LastName { trait Internal; def apply(value: String): LastName = value.asInstanceOf[LastName] } | |
type Email = (String @@ Email.Internal) | |
object Email { trait Internal; def apply(value: String): Email = value.asInstanceOf[Email] } | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment