This website requires JavaScript.
Explore
Help
Sign In
idris-lang
/
Idris2
Watch
1
Star
1
Fork
0
You've already forked Idris2
mirror of
https://github.com/idris-lang/Idris2.git
synced
2024-12-25 12:42:02 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
e1c5c2fd8e
Idris2
/
tests
/
idris2
/
misc
/
params002
/
run
4 lines
56 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Group tests by directory
2023-09-01 13:10:49 +03:00
. ../../../testutils.sh
Implement new parameters syntax Previously, parameter block reused the same syntax as in Idris1: ``` parameters (v1 : t1, … , vn : tn) ``` Unfortunately this syntax presents some issues: - It does not allow to declare implicit parameters - It does not allow to specify which multiplicity to use - It is inconsistent with the syntax used for named arguments elsewhere in the language. This change fixes those three problems by borrowing the syntax for declaring type parameters in records: ``` parameters (v1 : t2) (v2 : t2) … (vn : tn) ``` It also enables other features like multiple declarations of arguments with the same type: ``` parameters (v1, v2 : Type) ```
2021-04-19 19:48:53 +03:00
Add testing utilities script
2023-08-29 13:47:42 +03:00
idris2 ParamsPrint.idr < input
Reference in New Issue
Copy Permalink