1
1
mirror of https://github.com/tweag/nickel.git synced 2024-09-20 16:08:14 +03:00
Commit Graph

759 Commits

Author SHA1 Message Date
Yann Hamdaoui
a832ffed90
Merge pull request #276 from tweag/refactor/thunks
Thunks black-holing
2021-02-05 15:49:17 +00:00
Yann Hamdaoui
4bcaf4b7fa Avoid future should_update() test for thunks containing WHNFs 2021-02-05 16:40:20 +01:00
Yann Hamdaoui
7d85ae1913 code style + fix comments 2021-02-05 16:40:20 +01:00
Yann Hamdaoui
3f2a9f6f26 Use dedicated error for blackholes + doc 2021-02-05 16:40:20 +01:00
Yann Hamdaoui
5bad72e853 Add documentation for thunks 2021-02-05 16:40:20 +01:00
Yann Hamdaoui
61348e8448 Add infinite recursion error 2021-02-05 16:40:20 +01:00
Yann Hamdaoui
007a040628 Use new thunks in other mods 2021-02-05 16:40:18 +01:00
Yann Hamdaoui
bf0f0502df Use new thunks in stack mod 2021-02-05 16:38:42 +01:00
Yann Hamdaoui
2b8ab3c236 Improve thunk related definitions and usages 2021-02-05 16:38:42 +01:00
Eelco Dolstra
987ae1d1c7
Merge pull request #283 from tweag/fix/pipe-syntax-records
Pipe syntax in records and toplevel lets
2021-02-05 12:47:21 +01:00
Eelco Dolstra
6a75c64211
Merge pull request #282 from tweag/feature/import-multiple-formats
Support importing multiple formats (JSON, YAML, TOML)
2021-02-05 12:46:40 +01:00
Eelco Dolstra
8550f42345
Merge pull request #281 from tweag/feature/yaml-support
Add YAML and TOML export formats
2021-02-05 09:56:43 +01:00
Yann Hamdaoui
e6fa607e87 Test serialization-deserialization is involutory 2021-02-04 11:00:21 +01:00
Yann Hamdaoui
9a2a03b894 Remove unused imports 2021-02-04 11:00:21 +01:00
Yann Hamdaoui
6c00b1a9ac Improve error reporting when importing external formats 2021-02-04 11:00:21 +01:00
Yann Hamdaoui
559131ad28 Support importing JSON/YAML/TOML files 2021-02-04 11:00:21 +01:00
Yann Hamdaoui
456238dc3b Implement Deserialize trait for RichTerm 2021-02-04 11:00:21 +01:00
Yann Hamdaoui
fe909d3fac Add YAML and TOML export formats 2021-02-04 10:59:39 +01:00
Yann Hamdaoui
05ae942275
Merge pull request #273 from tweag/feature/shallow-type-inference
Shallow type inference
2021-02-03 16:43:08 +00:00
Yann Hamdaoui
7ede56ae0a Infer the Str apparent type for all interpolated strings 2021-02-03 17:32:21 +01:00
Yann Hamdaoui
e83dce6d8f Rename typecheck::ApparentType's variant Exact to Inferred 2021-02-03 17:29:31 +01:00
Yann Hamdaoui
cb26243956 Allow pipe syntax in records and toplevel lets 2021-02-03 17:27:14 +01:00
Yann Hamdaoui
c9c90f3156
Merge pull request #287 from tweag/fix/eq-on-enum
[Fix]Equality operator mishandling enums
2021-02-03 16:19:58 +00:00
Yann Hamdaoui
059447a568 Fix equality operator mishandling enums 2021-02-03 16:25:46 +01:00
Théophane Hufschmitt
33d2b00a27
Merge pull request #268 from tweag/task/simplify-extended-parser
Remove extended parser and use directly LALRPOP
2021-02-02 11:00:15 +01:00
Yann Hamdaoui
7b2a8d5ccd Add test for shallow type inference 2021-01-28 12:39:55 +01:00
Yann Hamdaoui
b97568f170 Fix unsound shallow inference for string chunks 2021-01-28 11:50:36 +01:00
Yann Hamdaoui
8e10bb0f7d Add basic inference outside of statically typed blocks 2021-01-28 11:39:40 +01:00
Yann Hamdaoui
0d555b7f9b Add a try_map function on Types 2021-01-27 17:38:48 +01:00
Yann Hamdaoui
3b07e9648d
Merge pull request #280 from tweag/fix/fix-test-unification-cycle
[Fix CI]Update test to use parametrized list type
2021-01-27 15:27:35 +00:00
Yann Hamdaoui
cbb36b6e7f Fix test to work with parametrized list type 2021-01-27 16:23:15 +01:00
Yann Hamdaoui
f3570ebacf
Merge pull request #271 from tweag/fix/typechecking-loop
[Fix]Cyclic type inference
2021-01-27 15:18:48 +00:00
Yann Hamdaoui
c2ebd94ed6
Merge pull request #272 from tweag/feature/parametrized-lists
Parametrized list type
2021-01-25 09:16:54 +00:00
Yann Hamdaoui
0409a14015 Do not print expected error diagnostic during test 2021-01-25 10:07:54 +01:00
Yann Hamdaoui
fe7ecf0eb7
Merge pull request #269 from tweag/fix/repl-control-sequences
[Fix]Swapped control sequences Ctrl+D and Ctrl+C in REPL
2021-01-25 08:56:48 +00:00
Yann Hamdaoui
9cfafaf524 Fix typo in comment 2021-01-25 09:53:22 +01:00
Yann Hamdaoui
5d092cb3e0 End input on empty lines in REPL 2021-01-25 09:46:59 +01:00
Yann Hamdaoui
5146213673
Fix typo in comment
Co-authored-by: Arnaud Spiwack <arnaud.spiwack@tweag.io>
2021-01-25 08:33:10 +00:00
Yann Hamdaoui
b7425eb87e Test that blame error reporting doesn't panic 2021-01-22 12:23:42 +01:00
Yann Hamdaoui
e65906df0e Add tests for parametrized lists contracts 2021-01-22 11:53:56 +01:00
Yann Hamdaoui
555877da8f Adapt error reporting to type paths with lists 2021-01-22 11:14:17 +01:00
Yann Hamdaoui
3a87a88e90 Adapt type paths for parametrized list type 2021-01-21 19:52:50 +01:00
Yann Hamdaoui
d6c8321eb9 Add support for parametrized list in type paths 2021-01-21 19:33:10 +01:00
Yann Hamdaoui
604cb1e9c9 Implement homogenuous list contracts 2021-01-21 18:50:21 +01:00
Yann Hamdaoui
aff0a645d3 Add tests for pretty printing of parametrized list types 2021-01-21 18:43:49 +01:00
Yann Hamdaoui
d3939e60e2 Update stdlib types with parametrized list types 2021-01-21 18:29:42 +01:00
Yann Hamdaoui
e562f1c681 Adapt tests to parametrized lists + fix head's type 2021-01-21 18:28:41 +01:00
Yann Hamdaoui
ade1504388 Typechecking of parametrized list type 2021-01-21 17:55:17 +01:00
Yann Hamdaoui
a519b9d748 Parsing of parametrized list type 2021-01-21 17:55:07 +01:00
Yann Hamdaoui
ac336b7eed Make the list type parametrized 2021-01-21 17:54:36 +01:00