Skip to content

Commit

Permalink
Merge pull request #456 from dvirf1/master
Browse files Browse the repository at this point in the history
adding a friendly message when the implicit for Derivation is not found
  • Loading branch information
ruippeixotog committed Mar 31, 2019
2 parents 7d5c7a0 + 4bb50ee commit 66fc4cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions macros/src/main/scala/pureconfig/Derivation.scala
@@ -1,11 +1,14 @@
package pureconfig

import scala.annotation.implicitNotFound
import scala.collection.mutable
import scala.language.experimental.macros
import scala.reflect.macros.whitebox

import pureconfig.derivation._

@implicitNotFound("""Cannot find an implicit instance of ${A}.
If you are trying to read or write a case class or sealed trait consider using PureConfig's auto derivation by adding `import pureconfig.generic.auto._`""")
sealed trait Derivation[A] {
def value: A
}
Expand Down

0 comments on commit 66fc4cb

Please sign in to comment.