scala.play.api.libs.json.LazyHelper.scala Maven / Gradle / Ivy
/*
* Copyright (C) 2009-2018 Lightbend Inc.
*/
package play.api.libs.json.util
import scala.language.higherKinds
// Deprecated?
trait LazyHelper[M[_], T] {
def lazyStuff: M[T]
}
object LazyHelper {
def apply[M[_], T](stuff: M[T]) = new LazyHelper[M, T] {
override lazy val lazyStuff = stuff
}
}