@@ -61,17 +61,17 @@ fromFold =
6161 Right is_equal -> is_equal
6262 Left _ -> False
6363
64−yield :: Property
65−yield =
64+fromPure :: Property
65+fromPure =
6666 forAll (chooseInt (min_value, max_value)) $ \x ->
67− case S.parse (P.yield x) (S.fromList [1 :: Int]) of
67+ case S.parse (P.fromPure x) (S.fromList [1 :: Int]) of
6868 Right r -> r == x
6969 Left _ -> False
7070
71−yieldM :: Property
72−yieldM =
71+fromEffect :: Property
72+fromEffect =
7373 forAll (chooseInt (min_value, max_value)) $ \x ->
74− case S.parse (P.yieldM $ return x) (S.fromList [1 :: Int]) of
74+ case S.parse (P.fromEffect $ return x) (S.fromList [1 :: Int]) of
7575 Right r -> r == x
7676 Left _ -> False
7777
@@ -418,13 +418,13 @@ wordBy =
418418
419419-- splitWithFailLeft :: Property
420420-- splitWithFailLeft =
421−-- property (case S.parse (P.serialWith (,) (P.die "die") (P.yield (1 :: Int))) (S.fromList [1 :: Int]) of
421+-- property (case S.parse (P.serialWith (,) (P.die "die") (P.fromPure (1 :: Int))) (S.fromList [1 :: Int]) of
422422-- Right _ -> False
423423-- Left _ -> True)
424424
425425-- splitWithFailRight :: Property
426426-- splitWithFailRight =
427−-- property (case S.parse (P.serialWith (,) (P.yield (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
427+-- property (case S.parse (P.serialWith (,) (P.fromPure (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
428428-- Right _ -> False
429429-- Left _ -> True)
430430
@@ -447,13 +447,13 @@ wordBy =
447447
448448-- teeWithFailLeft :: Property
449449-- teeWithFailLeft =
450−-- property (case S.parse (P.teeWith (,) (P.die "die") (P.yield (1 :: Int))) (S.fromList [1 :: Int]) of
450+-- property (case S.parse (P.teeWith (,) (P.die "die") (P.fromPure (1 :: Int))) (S.fromList [1 :: Int]) of
451451-- Right _ -> False
452452-- Left _ -> True)
453453
454454-- teeWithFailRight :: Property
455455-- teeWithFailRight =
456−-- property (case S.parse (P.teeWith (,) (P.yield (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
456+-- property (case S.parse (P.teeWith (,) (P.fromPure (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
457457-- Right _ -> False
458458-- Left _ -> True)
459459
@@ -489,13 +489,13 @@ wordBy =
489489
490490-- shortestFailLeft :: Property
491491-- shortestFailLeft =
492−-- property (case S.parse (P.shortest (P.die "die") (P.yield (1 :: Int))) (S.fromList [1 :: Int]) of
492+-- property (case S.parse (P.shortest (P.die "die") (P.fromPure (1 :: Int))) (S.fromList [1 :: Int]) of
493493-- Right r -> r == 1
494494-- Left _ -> False)
495495
496496-- shortestFailRight :: Property
497497-- shortestFailRight =
498−-- property (case S.parse (P.shortest (P.yield (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
498+-- property (case S.parse (P.shortest (P.fromPure (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
499499-- Right r -> r == 1
500500-- Left _ -> False)
501501
@@ -705,8 +705,8 @@ main =
705705
706706 describe "test for accumulator" $ do
707707 prop "P.fromFold FL.sum = FL.sum" fromFold
708− prop "yield value provided" yield
709− prop "yield monadic value provided" yieldM
708+ prop "fromPure value provided" fromPure
709+ prop "fromPure monadic value provided" fromEffect
710710 prop "fail err = Left (SomeException (ParseError err))" parserFail
711711 prop "always fail" die
712712 prop "always fail but monadic" dieM