Skip to content

Commit

Permalink
separate package object for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
cvogt committed May 27, 2016
1 parent 40746f2 commit 658dd66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lens.scala
Expand Up @@ -5,12 +5,6 @@ import scala.language.experimental.macros
import monocle._
import monocle.syntax.ApplyLens

object `package`{
implicit class ImplicitBoundLens[T]( v: T ) {
def lens = BoundLens( v )
}
}

object BoundLens {
def apply[S]( value: S ) = new BoundLens( ApplyLens[S, S, S, S]( value, Lens.id ) )
}
Expand Down
7 changes: 7 additions & 0 deletions package.scala
@@ -0,0 +1,7 @@
package ai.x.lens
object `package`{
implicit class ImplicitBoundLens[T]( v: T ) {
def lens = BoundLens( v )
}
}

0 comments on commit 658dd66

Please sign in to comment.