@@ -10,9 +10,10 @@ import Control.Applicative.Free (FreeAp, liftFreeAp, analyzeFreeAp, retractFreeA
1010import Control.Applicative.Free.Gen as GenF
1111import Data.Either (Either (..))
1212import Data.Tuple (Tuple )
13+ import Effect (Effect )
1314import Test.QuickCheck (class Arbitrary , class Coarbitrary , arbitrary )
1415import Test.QuickCheck.Gen (Gen )
15- import Test.QuickCheck.Laws (QC , A , checkLaws )
16+ import Test.QuickCheck.Laws (A , checkLaws )
1617import Test.QuickCheck.Laws.Control as Control
1718import Test.QuickCheck.Laws.Data as Data
1819import Type.Proxy (Proxy (..), Proxy2 (..))
@@ -42,7 +43,7 @@ buildExpected 0 _ acc = acc
4243buildExpected n x acc = buildExpected (n - 1 ) x (acc <> x)
4344
4445checkAnalyze :: Either String String
45- checkAnalyze =
46+ checkAnalyze =
4647 if result == expected
4748 then Right result
4849 else Left (result <> " is not " <> expected)
@@ -55,7 +56,7 @@ checkAnalyze =
5556
5657
5758checkStack :: Either String String
58- checkStack =
59+ checkStack =
5960 if result == expected
6061 then Right " safe for 100000 node"
6162 else Left (result <> " is not " <> expected)
@@ -70,7 +71,7 @@ checkStack =
7071newtype ArbFreeAp a = ArbFreeAp (FreeAp (Tuple (Array String )) a )
7172
7273instance arbitraryArbFreeAp :: (Coarbitrary a , Arbitrary a ) => Arbitrary (ArbFreeAp a ) where
73- arbitrary = ArbFreeAp <$>
74+ arbitrary = ArbFreeAp <$>
7475 GenF .genFree
7576 arbitrary
7677 (arbitrary :: Gen a )
@@ -83,7 +84,7 @@ derive newtype instance functorArbFreeAp :: Functor ArbFreeAp
8384derive newtype instance applyArbFreeAp :: Apply ArbFreeAp
8485derive newtype instance applicativeArbFreeAp :: Applicative ArbFreeAp
8586
86- check ∷ ∀ eff . QC eff Unit
87+ check ∷ Effect Unit
8788check = checkLaws " FreeAp" do
8889 Data .checkEq prxFree
8990 Data .checkFunctor prx2Free
0 commit comments