André Videla
ddb691bcdc
Merge pull request #3306 from dunhamsteve/implicitParam
...
[ fix ] implicits are not in scope under an implicit parameter block
2024-06-17 20:03:37 +01:00
Guillaume Allais
0c030020de
[ re #3314 , #34 ] Tighten the location information for implicits
...
When implicitly binding a variable, use the location of the head
function/constructor that expects it. This way we can differentiate
multiple implicits bound on the same LHS.
Note that this does not resolve the issue 34: there the location
is then further muddled by the fact that where-bound functions
are lifted to the toplevel.
2024-06-17 16:32:24 +01:00
André Videla
d6b8ab980d
Merge pull request #3315 from andrevidela/fix-3302
...
Emit error when unbound fixity is hidden
2024-06-17 14:11:44 +01:00
André Videla
02e5468551
Merge pull request #3314 from dunhamsteve/issue-3313
...
[ fix ] auto search returns no solution instead of ambiguous solution #3313
2024-06-17 12:56:20 +01:00
André Videla
0e09b8d575
Show unrelated namespace with matching operator name
2024-06-17 12:39:37 +01:00
André Videla
f67b303cca
Emit error when unbound fixity is hidden
2024-06-16 16:10:47 +01:00
Steve Dunham
1807cdcba7
[ fix ] auto search returns no solution instead of ambiguous solution
2024-06-15 15:01:37 -07:00
Steve Dunham
055568be28
[ fix ] case spliting under implicit/auto parameter
2024-06-13 08:40:33 +01:00
Steve Dunham
c9f7f308cf
[ fix ] implicits are not in scope under an implicit parameter
2024-06-12 12:55:29 -07:00
Mathew Polzin
88a5328ec1
Add an option that dumps package details to JSON ( #3293 )
...
* Initial stab at package json dump
* expose ipkg json dump as new option
* make dependency output easier to ingest by another tool
* Add a test for ipkg json dump
* cleanup
* maybe just don't collide with existing equally good fixity
* make new operator private
* Add new module to api ipkg file
* Add note to CHANGELOG_NEXT
* correct the docs for the dump-ipkg-json command
2024-06-11 11:32:22 +01:00
observant
1e6e125190
Add pipeline operators ( #3284 )
...
* Add pipeline operators
* Fix tests
* Change fixity, add tests
* [ fix ] silence actual fixity
---------
Co-authored-by: itmuckel <18561536+itmuckel@users.noreply.github.com>
Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
2024-06-06 10:59:30 +01:00
Aleksei Volkov
167258b975
[ test ] Added regression tests for #2927
2024-05-31 10:22:56 +01:00
Steve Dunham
960d818c29
Merge branch 'main' into impossible-lam
2024-04-27 18:25:06 -07:00
Steve Dunham
b99dd05224
[ parser ] Add support for impossible lambdas
2024-04-27 16:57:33 -07:00
André Videla
84ce3a6836
Merge pull request #3253 from dunhamsteve/issue3251
...
[ parser ] Fix issue parsing unquote
2024-04-28 08:17:18 +09:00
André Videla
dd991861c1
fix error message for unexported fixities
2024-04-21 23:27:29 +01:00
Steve Dunham
d7867c0c1a
[ parser ] Fix issue parsing unquote
2024-04-08 20:42:36 -07:00
André Videla
3b0d9d9f35
fix printing of backticked operators
2024-04-04 16:08:23 +01:00
André Videla
75032a7164
Emit warning for fixities with no export modifiers ( #3234 )
...
* Emit warning for fixities with no export modifiers
This is to help update all the existing code to program with explicit
fixity export directives in preparation for the behavioral change where
they will become private by default.
2024-04-03 15:41:57 +01:00
Thomas E. Hansen
c7a4fbe40e
[ test ] Add issue#1988 to the test suite
...
This appears to be fixed now, presumably thanks to PR#3108 or similar.
Closes #1988
2024-03-18 16:37:13 +00:00
Jacob Walters
da6b21a570
[ test ] More comprehensive test for getVis
2024-03-15 22:51:49 +00:00
Jacob Walters
18b165bede
[ elab ] Let elab scripts access visibility modifiers
2024-03-15 22:41:29 +00:00
Steve Dunham
809319fe8f
[ test ] fix clean_names function in testutils.sh ( #3227 )
2024-03-08 10:15:27 -06:00
rvs314
1143718098
Generalize succNotLTEpred
( #3225 )
...
* Don't require a runtime value of `x` for `succNotLTEpred`
* Add `succNotLTEpred` as an instance of `Uninhabited`
* Add contribution to changelog
* Update golden value for test `basic044`
2024-03-07 08:38:28 -06:00
André Videla
8ea1a092e0
add hiding test
2024-02-24 12:36:44 +00:00
André Videla
6485a0023f
update confusing error message
2024-02-24 12:36:44 +00:00
André Videla
d51a5c91bb
fix review comments
2024-02-24 12:36:44 +00:00
André Videla
58bcfb73c1
Update tests/idris2/operators/operators001/Test.idr
2024-02-24 12:36:44 +00:00
André Videla
e0f5ee9996
implement compatible operator suggestions
2024-02-24 12:36:44 +00:00
André Videla
31ea83039c
first attempt at suggesting different operators
2024-02-24 12:36:44 +00:00
André Videla
4eb9c97806
Allow patterns in operator binders
2024-02-24 12:36:44 +00:00
André Videla
1d3668d9a6
Allow underscore as a valid name for binder operator
2024-02-24 12:36:44 +00:00
André Videla
91f66bc7b5
add location of fixity to change in error message
2024-02-24 12:36:44 +00:00
André Videla
210f9d9c15
fix error message for non-associative fixity
2024-02-24 12:36:44 +00:00
André Videla
4cb8dc507b
update error message for infixr
2024-02-24 12:28:10 +00:00
André Videla
63c167637c
wip more error messages
2024-02-24 12:28:10 +00:00
Andre Videla
38fbad17f8
update test
2024-02-24 12:28:10 +00:00
Andre Videla
992fc62d86
reinstate the good error messages
2024-02-24 12:28:10 +00:00
Andre Videla
a73522ec66
cleanup tests
2024-02-24 12:28:10 +00:00
André Videla
f079781c17
fix tests
2024-02-24 12:28:10 +00:00
André Videla
a7a25914b7
Allow binding operators on LHS
...
When a binding operator is found on the LHS, we don't check
if the first argument is a binder.
2024-02-24 12:28:10 +00:00
Andre Videla
07c42c22a5
update error messages
2024-02-24 12:28:10 +00:00
André Videla
fd40777e0d
add error message tests
2024-02-24 12:28:10 +00:00
André Videla
02a6751796
add shunting test
2024-02-24 12:28:10 +00:00
André Videla
1adb780e3f
add tests to chaining and combing operators
2024-02-24 12:28:10 +00:00
André Videla
6ce4ec2ebf
add both typebind and autobind
2024-02-24 12:28:10 +00:00
André Videla
046e08d173
differenciate between type bind and expr bind
2024-02-24 12:28:10 +00:00
André Videla
0ed65eb587
desugar autobind properly
2024-02-24 12:28:10 +00:00
André Videla
b8d81b768e
add autobind keyword
2024-02-24 12:28:10 +00:00
André Videla
1d7d07a667
add test file
2024-02-24 12:28:10 +00:00