-
Notifications
You must be signed in to change notification settings - Fork 0
/
catsinstances.scala
29 lines (26 loc) · 1.18 KB
/
catsinstances.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright 2022 Parsley-Cats Contributors <https://github.com/j-mie6/parsley-cats/graphs/contributors>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package parsley
import _root_.cats.{Defer, FunctorFilter, Monad, MonoidK}
/** Contains instances for `cats` typeclasses.
*
* @since 0.1.0
*/
@deprecated("This object has been renamed to `parsley.cats.instances`, this will be removed in parsley-cats 2", "1.2.0")
object catsinstances {
/** Instance for the core `cats` typeclasses used with parser combinators.
*
* @since 0.1.0
*/
@deprecated("This has been renamed to `parsley.cats.instances.monadPlusForParsley`, this will be removed in parsley-cats 2", "1.2.0")
implicit val monadPlusForParsley: Monad[Parsley] with MonoidK[Parsley] with FunctorFilter[Parsley] = parsley.cats.instances.monadPlusForParsley
/** Instance for `cats` `Defer` typeclass, which allows for recursive parser generation.
*
* @since 0.2.0
*/
@deprecated("This has been renamed to `parsley.cats.instances.deferForParsley`, this will be removed in parsley-cats 2", "1.2.0")
implicit val deferForParsley: Defer[Parsley] = parsley.cats.instances.deferForParsley
}