Skip to content
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

Exhaustive inference #147

Open
o1lo01ol1o opened this issue May 29, 2020 · 1 comment
Open

Exhaustive inference #147

o1lo01ol1o opened this issue May 29, 2020 · 1 comment

Comments

@o1lo01ol1o
Copy link
Contributor

o1lo01ol1o commented May 29, 2020

I've run into some cases where I'd willingly trade the execution time of some long running computation for a single set of inferred types that I could manually include in source. This clearly wouldn't work with the template haskell as it currently stands -- where could I splice such a function?

In my mind, the expected behavior would be like tableTypes (and tableTypes') but would check more (all) rows and return a string representing all the generated code.

@acowley
Copy link
Owner

acowley commented May 31, 2020

Yeah, I want this, too. There are tools for expanding TH splices into concrete text, but I think they’ve always been a bit fragile. Perhaps we should make a helper executable for Frames that doesn’t do TH at all, but just generates the right Haskell source, perhaps with a token in a comment so it can be updated in-place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants