Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Commit

Permalink
Add materialize on As
Browse files Browse the repository at this point in the history
  • Loading branch information
jto committed Oct 8, 2016
1 parent 69c2e6c commit 7ae8ee0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions validation-core/src/main/scala/free/As.scala
Expand Up @@ -6,6 +6,9 @@ import shapeless.{ HList, HNil, :: }
case class As[A](path: Path) {
def ~[B](fb: As[B]): AsSyntax.AsSyntax2[A, B] =
AsSyntax.AsSyntax2(this, fb)

def materialize[F[_]](implicit f: Path => F[A]) =
f(path)
}

/**
Expand Down

0 comments on commit 7ae8ee0

Please sign in to comment.