New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arbitrary Exp #1
Comments
To be honest, that's some of the laziest Haskell code I've ever written. My goal when defining those The commented-out code was my original attempt, but due to the high levels of mutual recursion among Template Haskell data types, they were too slow for practical use. To get around this, I use trivial values for most types, which means any Haskell expressions generated by this code would be extremely uninteresting. |
You mean the slowness came due to the recursion going too deep and generating too long of an AST? If so couldn't that be solved by allowing to specify the desired depth and/or length of the arbitrary expression? A bit of context: I am thinking of using automatically generated expressions to test the correctness of this parser. |
Probably. I'm not an experienced |
I'm going to close this, since it seems only tangentially related to |
Hello!
Do I see it correctly that in this file you are defining an Arbitrary instance for Haskell AST? Could that be used to get arbitrary haskell source strings via QuickCheck? And if so perhaps would you be willing to move that portion out to a separate cabal package so that others, including myself could use it?
The text was updated successfully, but these errors were encountered: