Navigation Menu

Skip to content

Commit

Permalink
s/pure/point/g
Browse files Browse the repository at this point in the history
  • Loading branch information
arosien committed Oct 15, 2013
1 parent 681a6f8 commit be5736b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/Configz.scala
Expand Up @@ -51,7 +51,7 @@ object Configz {
/** Get a value at a path from a [[com.typesafe.config.Config]]. */
def atPath[A](f: Config => String => A): Configz[String => A] =
new Configz[String => A] {
def settings(config: Config): Settings[String => A] = f(config).pure[Configz].settings(config)
def settings(config: Config): Settings[String => A] = f(config).point[Configz].settings(config)

override def toString = "Configz(atPath)[%s]".format(f)
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/package.scala
Expand Up @@ -53,6 +53,6 @@ package object configz {

/** Lift a String to a (typed) path into a config. */
implicit class StringOps(value: String) {
def path[A](implicit atPath: Configz[String => A]): Configz[A] = value.pure[Configz] <*> atPath
def path[A](implicit atPath: Configz[String => A]): Configz[A] = value.point[Configz] <*> atPath
}
}

0 comments on commit be5736b

Please sign in to comment.