Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

Have an implicit instance for Equivalent classes, (A === B)#9

Open
kryptt wants to merge 2 commits into
masterfrom
LeibnizPickler
Open

Have an implicit instance for Equivalent classes, (A === B)#9
kryptt wants to merge 2 commits into
masterfrom
LeibnizPickler

Conversation

@kryptt

@kryptt kryptt commented Nov 1, 2014

Copy link
Copy Markdown
Member

This makes it unnecessary to make NOOP pickers such as:

  implicit def BSONValuePickler: BSONPickler[BSONValue] = new BSONPickler[BSONValue] {
    def pickle(doc: BSONValue): BSONValue = doc
    def unpickle(v: BSONValue, path: List[String]): String \/ BSONValue =
      typecheck[BSONValue](v, path)(identity)
  } 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant