-
Notifications
You must be signed in to change notification settings - Fork 57
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
Migrate old named application syntax #2876
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d5c3775
to
9615266
Compare
a42c127
to
c24d1df
Compare
82f7175
to
54a7708
Compare
6dbe5c9
to
125fdcc
Compare
125fdcc
to
9f8fe1f
Compare
paulcadman
reviewed
Jul 12, 2024
paulcadman
approved these changes
Jul 12, 2024
18 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pr migrates the old named application syntax to the new one. In order to migrate a juvix file to the new syntax it suffices to run the formatter.
After the next release, we should completely remove the support for the old syntax.
Other changes
I've improved Scope negative tests. Previously, when a negative test failed, you could only see the title of the test and the message "Incorrect Error", as well as the Haskell file and line where the test is defined.
![image](https://private-user-images.githubusercontent.com/5511599/347827595-f0b7ec60-55dc-4f38-9b51-1fbedbda63f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMTQzMDMsIm5iZiI6MTczOTAxNDAwMywicGF0aCI6Ii81NTExNTk5LzM0NzgyNzU5NS1mMGI3ZWM2MC01NWRjLTRmMzgtOWI1MS0xZmJlZGJkYTYzZjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMTEyNjQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWE2ZGY1MTE2OTcyMzkxMWEyZWY0MzExNzA0ZWNiZWQwMmMxYzZhNDdhOThkOWI1MTRiODI3MjVkNmMyNjY5NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.sY9WvvZMDBwsECW-JSDW933QBspbkVbb8TbXD9S7FW8)
This is extremely incovenient because you have to go to the haskell test file, go to the line where the error is defined, look at the name of the file and then visit that file. Moreover, you need to manually run the scoper on that file to see the error that was returned.
I've fixed that and it now shows all relevant information. Example:
I've implemented this only using the
Generic
instance for theScoperError
type, so doing something similar for the rest of negative tests should be straightforward.