-
Notifications
You must be signed in to change notification settings - Fork 218
Fixing the typechecking rule for Optional + with ? #2650
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
base: main
Are you sure you want to change the base?
Conversation
How can I run the tests locally? I tried
I have gcc installed:
|
I made a PR to add regression tests to dhall-lang here: dhall-lang/dhall-lang#1400
Problems with GHC were fixed by upgrading my Mac. I will run tests locally when time permits. |
I ran locally the tests from the branch winitzki:feature/issue-2597-regression-with in dhall-lang, all tests passed. |
The test error is:
We should really stop using httpbin.org in tests. Instead, perhaps implement a barebones http server in bash / netcat or something like that. |
The corrected typechecking rules should be as follows:
Two rules are necessary because we need to process
e with ? = v
ande with ?.x = v
in different ways.The types are now checked correctly:
Could someone please help me with adding unit tests and with adding standard regression tests to dhall-lang/dhall-lang as well?