Skip to content

Commit e48b6bd

Browse files
authored
Fix Arbitrary instance for Instruction String v (#22)
1 parent f4b1397 commit e48b6bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/Test/Foreign/Object.purs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import Data.Function (on)
1010
import Data.List as L
1111
import Data.List.NonEmpty as NEL
1212
import Data.Maybe (Maybe(..))
13-
import Data.NonEmpty ((:|))
1413
import Data.Semigroup.First (First(..))
1514
import Data.Semigroup.Last (Last(..))
1615
import Data.Traversable (sequence, traverse)
@@ -45,7 +44,7 @@ instance showInstruction :: (Show k, Show v) => Show (Instruction k v) where
4544
instance arbInstruction :: (Arbitrary v) => Arbitrary (Instruction String v) where
4645
arbitrary = do
4746
b <- arbitrary
48-
k <- Gen.frequency $ Tuple 10.0 (pure "hasOwnProperty") :| pure (Tuple 50.0 arbitrary)
47+
k <- Gen.frequency $ NEL.cons' (Tuple 10.0 (pure "hasOwnProperty")) (pure (Tuple 50.0 arbitrary))
4948
case b of
5049
true -> do
5150
v <- arbitrary

0 commit comments

Comments
 (0)