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-20 18:21:47 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
55efd7dd7b
Idris2
/
tests
/
idris2
/
params002
/
run
5 lines
83 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Move rm -rf to the beginning of the test While the discussion about how to refactor test framework is not finished (#1654), make this change: move `rm -rf build` in the beginning of the test. For these reasons: * it is useful to inspect the contents of the `build` directory especially after the test failure * if build crashes mid-test (e.g. process killed), next run should not be affected by the `build` directory from the previous run
2021-07-14 00:54:53 +03:00
rm -rf build
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
$1 --no-color --console-width 0 --no-banner ParamsPrint.idr < input
Reference in New Issue
Copy Permalink