1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-04 15:17:34 +03:00
Commit Graph

2758 Commits

Author SHA1 Message Date
Yann Hamdaoui
05375af534 Officially restore the syntax for enum types
The enum types synax was temporary and somehow hidden. For v0.2.0, we
make it visible again. This commits also changes the syntax such that
alternatives must be prefixed with a backtick `, as for enum tags, for
more visual consistency.

This commit also updates the manual sections accordingly.
2022-07-29 10:41:26 +02:00
Yann Hamdaoui
33f2007ec1
Merge pull request #765 from tweag/bench/lazy-array-contracts
Benchmark array contracts
2022-07-28 17:22:10 +02:00
Yann Hamdaoui
5cd244e0b2
Implement type equality for enums (#771) 2022-07-28 17:20:49 +02:00
francois-caddet
ce1afa2c10
quick and dirty fix of lsp error when position is None (#773)
* try to manage items without position in the lsp

* fix `linearisation::Completed::elem_at` and some code cleaning

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@gmail.com>
2022-07-28 16:47:11 +02:00
dependabot[bot]
e66f8c62f2
chore(deps): bump DeterminateSystems/update-flake-lock from 10 to 11 (#777)
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 10 to 11.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v10...v11)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-28 14:21:11 +02:00
Mahmoud Mazouz
93eea5a278
Use contract.from_predicate in Prime 2022-07-26 15:43:29 +02:00
Yann Hamdaoui
8775ece975
Forbid any unification between opaque types (contracts) (#769)
* Forbid any unification between opaque types (contracts)

Fix previously unsound behavior where the typechecker would use the name
of the contract to decide equality (but names are local, so the same
names may stem from different definitions made at two different
locations). In waiting for a proper type equality between contracts,
this commit just make the typechecker reject any unification involving a
contract, with a detailed error message.
2022-07-25 17:15:15 +02:00
penglei
f7884de60b
Fix typo in correctness.md docs (#772)
* Fix typo in correctness.md docs

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@gmail.com>
2022-07-25 15:39:19 +02:00
Mahmoud Mazouz
2bdbf1fd72
Add primes benchmark 2022-07-22 16:56:40 +02:00
Mahmoud Mazouz
51b1a37488
Simplify sum benchmark 2022-07-22 16:56:28 +02:00
Mahmoud Mazouz
4f0c249708
Merge pull request #770 from tweag/task/resolve-clippy-lints
Apply clippy lints where they make sense
2022-07-21 15:15:53 +02:00
Mahmoud Mazouz
4f63711c38
Ignore matches! lint 2022-07-21 13:47:24 +02:00
Mahmoud Mazouz
ef8aff4e17
Apply clippy lints where they make sense 2022-07-20 16:53:47 +02:00
Yann Hamdaoui
f6382c01f0
Merge pull request #763 from tweag/task/type-equality-contracts
Implement type equality for contracts
2022-07-19 17:49:56 +02:00
Yann Hamdaoui
be179e8bcf
Merge pull request #757 from tweag/fix/lalrpop-unused-imports-warning
Allow unused imports in LALRPOP
2022-07-18 09:33:38 +02:00
Yann Hamdaoui
8965d6ae22
Update src/typecheck/eq.rs
Co-authored-by: Erin van der Veen <erin.vanderveen@tweag.io>
2022-07-17 22:21:34 +02:00
Yann Hamdaoui
750541b204
Update src/typecheck/eq.rs
Co-authored-by: Erin van der Veen <erin.vanderveen@tweag.io>
2022-07-17 22:21:28 +02:00
Mahmoud Mazouz
767245b082
Add array/sum benchmark 2022-07-08 11:40:47 +02:00
Yann Hamdaoui
8a010d8eb1
Update src/typecheck/eq.rs
Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com>
2022-07-07 17:48:42 +02:00
Yann Hamdaoui
9900496cc8
Update src/typecheck/eq.rs
Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com>
2022-07-07 17:48:25 +02:00
Yann Hamdaoui
0abe0dc3f5
Add missing type equality for computing contract equality 2022-07-06 15:38:48 +02:00
Yann Hamdaoui
429a1fc924
Add type equality for contracts but don't use it yet 2022-07-06 14:13:11 +02:00
Yann Hamdaoui
e0e8587633
Merge pull request #762 from tweag/fix/revert-normal-thunks
Share the data among reverted normal thunks
2022-07-05 09:45:23 +02:00
Yann Hamdaoui
e3b6bd5ff9
Share the data among reverted normal thunks 2022-07-01 16:55:44 +02:00
Yann Hamdaoui
7e4f709ee9
Merge pull request #759 from tweag/fix/pprint-empty-string
[Fix] Panic when pretty printing an ast with empty strings
2022-07-01 16:23:21 +02:00
Yann Hamdaoui
f56110fdf8
Merge pull request #760 from tweag/fix/pretty/destructuring
Pretty print correctly simple form  destructuring
2022-07-01 15:41:57 +02:00
francois-caddet
cdc2372088 fix defaults printing in destructuring 2022-06-30 17:30:30 +02:00
francois-caddet
af54ca020e Prettyprint destructuring function args 2022-06-30 16:39:36 +02:00
Yann Hamdaoui
65f1292349
Fix panic when pprint ast with empty strings 2022-06-30 16:16:11 +02:00
Yann Hamdaoui
34b3b8ca8b
Merge pull request #713 from tweag/update_flake_lock_action
flake.lock: Update
2022-06-29 22:29:44 +02:00
Yann Hamdaoui
4081f00703
Merge pull request #755 from tweag/fix/manual-row-polymorphism
[Fix] Fix use of old row tail syntax in the row polymorphism section of the manual
2022-06-29 16:53:51 +02:00
Yann Hamdaoui
130e0505b9
Fix use of old row tail syntax in manual 2022-06-29 16:52:22 +02:00
Yann Hamdaoui
f27d234084
Merge pull request #754 from tweag/fix/types-vs-contracts-page
[Fix] Fix types-vs-contracts manual page not found on the website
2022-06-29 16:51:48 +02:00
Yann Hamdaoui
3ff27b95ee
Fix slug metadata + old interp syntax in types-vs-contracts 2022-06-29 16:52:01 +02:00
github-actions[bot]
b230761153
flake.lock: Update
Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/04c1b180862888302ddfb2e3ad9eaa63afc60cf8' (2022-05-17)
  → 'github:numtide/flake-utils/bee6a7250dd1b01844a2de7e02e4df7d8a0a206c' (2022-06-24)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/48037fd90426e44e4bf03e6479e88a11453b9b66' (2022-05-18)
  → 'github:NixOS/nixpkgs/6141b8932a5cf376fe18fcd368cecd9ad946cb68' (2022-06-23)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/521a524771a8e93caddaa0ac1d67d03766a8b0b3' (2022-05-16)
  → 'github:cachix/pre-commit-hooks.nix/db3bd555d3a3ceab208bed48f983ccaa6a71a25e' (2022-06-25)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/3bc2619665745f5e6f2efc3d0664edad4f62201b' (2022-05-21)
  → 'github:oxalica/rust-overlay/59a3a304c987dc65d2a33de0a77a1ae6ae777cd4' (2022-06-25)
2022-06-29 14:12:32 +02:00
Yann Hamdaoui
73bb35267b
Merge pull request #745 from tweag/task/doc-ordered-fields
Fix random order of fields in `nickel doc`
2022-06-29 14:01:44 +02:00
Yann Hamdaoui
9de227b5aa
Merge pull request #744 from tweag/task/build-stdlib-doc-2
Add flake output to build stdlib documentation
2022-06-29 12:15:27 +02:00
Yann Hamdaoui
ec8996ef8b
Merge pull request #743 from tweag/task/doc-output-path
Add --output flag to nickel doc command
2022-06-29 12:13:48 +02:00
Yann Hamdaoui
0abe3e0b60
Improve the --output option description 2022-06-29 10:27:50 +02:00
Yann Hamdaoui
17fb115eed
Merge pull request #752 from tweag/feature/to_string
Add a to_str function
2022-06-28 14:44:36 +02:00
Mahmoud Mazouz
abadd6d37d
allow unused imports in LALRPOP 2022-06-28 12:01:52 +02:00
Yann Hamdaoui
0417f9a61f
Merge pull request #751 from tweag/refactor/typeof
[Refactor] Get rid of is_xxx primops in favor of typeof
2022-06-28 09:54:24 +02:00
Yann Hamdaoui
86b405861a
Make to_str work on null input 2022-06-27 18:25:36 +02:00
Yann Hamdaoui
d952614e4c
Merge pull request #750 from tweag/task/archive-makam
Remove Makam specification
2022-06-27 18:16:04 +02:00
Yann Hamdaoui
c7eb0f1b7e
Add builtin.to_str and string.from to stdlib 2022-06-24 19:12:50 +02:00
Yann Hamdaoui
cdec8f3d54
Fix ValueType contract undue failures 2022-06-24 19:09:53 +02:00
Yann Hamdaoui
8527f5692d
Get rid of is_xxx primops in favor of typeof 2022-06-24 18:38:59 +02:00
Yann Hamdaoui
c65f101fe5
Remove Makam specification 2022-06-24 16:46:36 +02:00
Yann Hamdaoui
f7a99a8853
Merge pull request #748 from tweag/task/cachix-use-tweag-nickel
[CI] Use the new tweag-nickel Cachix instance
2022-06-24 16:41:56 +02:00
Yann Hamdaoui
aa990bdc33
Merge pull request #734 from tweag/refactor/typechecking/walk-phase
[Refactoring] Separate walk phase during typechecking
2022-06-24 11:05:45 +02:00