Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package nl.edejong.p1.parser
- import cats.state.State
- import org.scalatest._
- import cats.std.{Function0Instances, AllInstances}
- import cats.syntax.AllSyntax
- class P1ParserSpec extends WordSpec with Matchers with AllInstances with AllSyntax
- with Function0Instances
- {
- import cats.std.function._
- val addM2: State[Any, Any] = State(cur ⇒ (cur, 0))
- println(addM2.runS(0).run)
- }
- object P1ParserSpec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement