@@ -64,17 +64,17 @@ fromFold =
64 Right is_equal -> is_equal
64 Right is_equal -> is_equal
65 Left _ -> False
65 Left _ -> False
67−yield :: Property
67+fromPure :: Property
69 forAll (chooseInt (min_value, max_value)) $ \x ->
69 forAll (chooseInt (min_value, max_value)) $ \x ->
70− case S.parseD (P.yield x) (S.fromList [1 :: Int]) of
70+ case S.parseD (P.fromPure x) (S.fromList [1 :: Int]) of
71 Right r -> r == x
71 Right r -> r == x
72 Left _ -> False
72 Left _ -> False
74−yieldM :: Property
74+fromEffect :: Property
75−yieldM =
75+fromEffect =
76 forAll (chooseInt (min_value, max_value)) $ \x ->
76 forAll (chooseInt (min_value, max_value)) $ \x ->
77− case S.parseD (P.yieldM $ return x) (S.fromList [1 :: Int]) of
77+ case S.parseD (P.fromEffect $ return x) (S.fromList [1 :: Int]) of
78 Right r -> r == x
78 Right r -> r == x
79 Left _ -> False
79 Left _ -> False
@@ -396,13 +396,13 @@ serialWith =
397splitWithFailLeft :: Property
397splitWithFailLeft :: Property
398splitWithFailLeft =
398splitWithFailLeft =
399− property (case S.parseD (P.serialWith (,) (P.die "die") (P.yield (1 :: Int))) (S.fromList [1 :: Int]) of
399+ property (case S.parseD (P.serialWith (,) (P.die "die") (P.fromPure (1 :: Int))) (S.fromList [1 :: Int]) of
400 Right _ -> False
400 Right _ -> False
401 Left _ -> True)
401 Left _ -> True)
403splitWithFailRight :: Property
403splitWithFailRight :: Property
404splitWithFailRight =
404splitWithFailRight =
405− property (case S.parseD (P.serialWith (,) (P.yield (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
405+ property (case S.parseD (P.serialWith (,) (P.fromPure (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
406 Right _ -> False
406 Right _ -> False
407 Left _ -> True)
407 Left _ -> True)
@@ -425,13 +425,13 @@ teeWithPass =
426teeWithFailLeft :: Property
426teeWithFailLeft :: Property
427teeWithFailLeft =
427teeWithFailLeft =
428− property (case S.parseD (P.teeWith (,) (P.die "die") (P.yield (1 :: Int))) (S.fromList [1 :: Int]) of
428+ property (case S.parseD (P.teeWith (,) (P.die "die") (P.fromPure (1 :: Int))) (S.fromList [1 :: Int]) of
429 Right _ -> False
429 Right _ -> False
430 Left _ -> True)
430 Left _ -> True)
432teeWithFailRight :: Property
432teeWithFailRight :: Property
433teeWithFailRight =
433teeWithFailRight =
434− property (case S.parseD (P.teeWith (,) (P.yield (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
434+ property (case S.parseD (P.teeWith (,) (P.fromPure (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
435 Right _ -> False
435 Right _ -> False
436 Left _ -> True)
436 Left _ -> True)
@@ -456,13 +456,13 @@ shortestPass =
457shortestPassLeft :: Property
457shortestPassLeft :: Property
458shortestPassLeft =
458shortestPassLeft =
459− property (case S.parseD (P.shortest (P.die "die") (P.yield (1 :: Int))) (S.fromList [1 :: Int]) of
459+ property (case S.parseD (P.shortest (P.die "die") (P.fromPure (1 :: Int))) (S.fromList [1 :: Int]) of
460 Right r -> r == 1
460 Right r -> r == 1
461 Left _ -> False)
461 Left _ -> False)
463shortestPassRight :: Property
463shortestPassRight :: Property
464shortestPassRight =
464shortestPassRight =
465− property (case S.parseD (P.shortest (P.yield (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
465+ property (case S.parseD (P.shortest (P.fromPure (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
466 Right r -> r == 1
466 Right r -> r == 1
467 Left _ -> False)
467 Left _ -> False)
@@ -490,13 +490,13 @@ longestPass =
491longestPassLeft :: Property
491longestPassLeft :: Property
492longestPassLeft =
492longestPassLeft =
493− property (case S.parseD (P.shortest (P.die "die") (P.yield (1 :: Int))) (S.fromList [1 :: Int]) of
493+ property (case S.parseD (P.shortest (P.die "die") (P.fromPure (1 :: Int))) (S.fromList [1 :: Int]) of
494 Right r -> r == 1
494 Right r -> r == 1
495 Left _ -> False)
495 Left _ -> False)
497longestPassRight :: Property
497longestPassRight :: Property
498longestPassRight =
498longestPassRight =
499− property (case S.parseD (P.shortest (P.yield (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
499+ property (case S.parseD (P.shortest (P.fromPure (1 :: Int)) (P.die "die")) (S.fromList [1 :: Int]) of
500 Right r -> r == 1
500 Right r -> r == 1
501 Left _ -> False)
501 Left _ -> False)
@@ -723,8 +723,8 @@ main =
724 describe "test for accumulator" $ do
724 describe "test for accumulator" $ do
725 prop "P.fromFold FL.sum = FL.sum" fromFold
725 prop "P.fromFold FL.sum = FL.sum" fromFold
726− prop "yield value provided" yield
726+ prop "fromPure value provided" fromPure
727− prop "yield monadic value provided" yieldM
727+ prop "fromPure monadic value provided" fromEffect
728 prop "always fail" die
728 prop "always fail" die
729 prop "always fail but monadic" dieM
729 prop "always fail but monadic" dieM