haskell-hedgehog icon indicating copy to clipboard operation
haskell-hedgehog copied to clipboard

subtermN?

Open ocharles opened this issue 6 years ago • 0 comments

Is it possible to have a subterm generator that gives a list of subterms of arbitrary length? A use case might be:

data Expr = 
  ...
  | List [Expr]

That is, a language which has list expressions of arbitrary length.

Given Range, maybe this is something like subtermNM :: MonadGen m => Range -> m a -> ([a] -> m a)?

ocharles avatar Sep 10 '17 21:09 ocharles