Skip to content

Instantly share code, notes, and snippets.

@robhinds
Last active June 20, 2017 08:07
Show Gist options
  • Save robhinds/2faabda3b9adccde9943a6a2af645768 to your computer and use it in GitHub Desktop.
Save robhinds/2faabda3b9adccde9943a6a2af645768 to your computer and use it in GitHub Desktop.
implicit def cnilGenerator: Generator[CNil] =
new Generator[CNil] {
override def generate: CNil = throw new RuntimeException("Invalid candidate configuration")
}
implicit def cconsGenerator[H, T <: Coproduct] =
new Generator[H :+: T] {
override def generate = throw new RuntimeException("Invalid candidate configuration")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment