Skip to content

Commit 82f6536

Browse files
comment
1 parent 7cb5442 commit 82f6536

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Constrained/Spec/List.hs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ randomInterleaving xs ys = go xs ys (length ys)
274274
go [] ys _ = pure ys
275275
go xs [] _ = pure xs
276276
go xs ys l = do
277+
-- TODO: think about distribution here
277278
i <- choose (0, l)
278279
go' i xs ys (l - i)
279280

@@ -282,11 +283,6 @@ randomInterleaving xs ys = go xs ys (length ys)
282283
go' 0 (x:xs) ys l = (x:) <$> go xs ys l
283284
go' i xs (y:ys) l = (y:) <$> go' (i-1) xs ys l
284285

285-
genSplit :: [a] -> Gen ([a], [a])
286-
genSplit as = do
287-
s <- choose (0, length as)
288-
return $ splitAt s as
289-
290286
instance HasSpec a => HasGenHint [a] where
291287
type Hint [a] = Integer
292288
giveHint szHint = typeSpec $ ListSpec (Just szHint) [] mempty mempty NoFold

0 commit comments

Comments
 (0)