/*
 * Copyright 2013-2015 Tsukasa Kitachi
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.github.kxbmap.configs

import scala.collection.generic.CanBuildFrom

@deprecated("Use Configs instead", "0.3.0")
object AtPath {

  @deprecated("Use Configs instead", "0.3.0")
  def apply[A](implicit A: Configs[A]): Configs[A] = A

  @deprecated("Use Configs.map instead", "0.3.0")
  def by[A: Configs, B](f: A => B): Configs[B] = Configs[A].map(f)

  @deprecated("Use Configs.mapF instead", "0.3.0")
  def listBy[F[_], A, B](f: A => B)(implicit ev: Configs[Seq[A]], cbf: CanBuildFrom[Nothing, B, F[B]]): Configs[F[B]] =
    ev.map(_.map(f)(collection.breakOut))

}

/*
 * Copyright 2013-2015 Tsukasa Kitachi
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.github.kxbmap.configs

@deprecated("Use Configs instead", "0.3.0")
object AtPath {

  @deprecated("Use Configs instead", "0.3.0")
  def apply[A](implicit A: Configs[A]): Configs[A] = A

  @deprecated("Use Configs.map instead", "0.3.0")
  def by[A: Configs, B](f: A => B): Configs[B] = Configs[A].map(f)

  @deprecated("Use Configs.mapF instead", "0.3.0")
  def listBy[A, B](f: A => B)(implicit ev: Configs[List[A]]): Configs[List[B]] =
    ev.mapF(f)

}

Change signature for 0.2.x compatible
Change signature for 0.2.x compatible
