Skip to content

Instantly share code, notes, and snippets.

@joan38
Created August 26, 2018 22:51
Show Gist options
  • Save joan38/7598512e4d26ff35e7ae6abd12ad1d15 to your computer and use it in GitHub Desktop.
Save joan38/7598512e4d26ff35e7ae6abd12ad1d15 to your computer and use it in GitHub Desktop.
trait Creatable[Resource] {
implicit protected val resourceEncoder: Encoder[Resource]
def create(resource: Resource): Unit = ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment