-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved catsinstances to cats.instances, this will be more consistent: …
…deprecated old version (#4)
- Loading branch information
Showing
11 changed files
with
76 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...c/main/scala-2.12/MonoidKForParsley.scala → ...2.12/parsley/cats/MonoidKForParsley.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
.../main/scala-2.13+/MonoidKForParsley.scala → ....13+/parsley/cats/MonoidKForParsley.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...scala/parsley/ApplicativeForParsley.scala → .../parsley/cats/ApplicativeForParsley.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
.../main/scala/parsley/DeferForParsley.scala → .../scala/parsley/cats/DeferForParsley.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...ala/parsley/FunctorFilterForParsley.scala → ...arsley/cats/FunctorFilterForParsley.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...ain/scala/parsley/FunctorForParsley.scala → ...cala/parsley/cats/FunctorForParsley.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
.../main/scala/parsley/MonadForParsley.scala → .../scala/parsley/cats/MonadForParsley.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
parsley-cats/shared/src/main/scala/parsley/catsinstances.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* SPDX-FileCopyrightText: © 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 | ||
} |
7 changes: 4 additions & 3 deletions
7
...ed/src/test/scala/parsley/CatsSuite.scala → ...c/test/scala/parsley/cats/CatsSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters