Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active February 12, 2017 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/d1d8f1a93586ca442bfc3ee6d77f3866 to your computer and use it in GitHub Desktop.
Save deque-blog/d1d8f1a93586ca442bfc3ee6d77f3866 to your computer and use it in GitHub Desktop.
genCst :: Gen Expr
genCst = fmap cst arbitrary
varNames :: [String]
varNames = [[v] | v <- ['a'..'z']]
genVar :: Gen Expr
genVar = fmap var (elements varNames)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment