Equivalent to getting a new type in ScalaZ

Is there an equivalent to a Haskell function newtype .... deriving

(as described in this 36th minute video lecture ) in ScalaZ?

enter image description here

+3


source to share


1 answer


shapeless-contrib allows something like this.



+1


source







All Articles