Guest User

Untitled

a guest
Jan 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import scalaz._
  2. import Scalaz._
  3.  
  4. case class Identifier(i:Long)
  5. case class Thing(id:Identifier)
  6.  
  7. object Thing extends Equals {
  8. implicit def IdentifierEqual:Equal[Identifier] = equalA
  9. implicit def ThingEqual:Equal[Thing] = equalBy(_.id)
  10. }
Add Comment
Please, Sign In to add comment