Yann Hamdaoui
91650792e1
Fix validation for serialize()
2021-03-01 11:04:53 +01:00
Yann Hamdaoui
54644833da
Fix equality on null
2021-03-01 11:00:32 +01:00
Yann Hamdaoui
7f4b7c2040
Add the null value
2021-03-01 11:00:32 +01:00
Eelco Dolstra
d563668387
Merge remote-tracking branch 'origin/task/ghactions-check-formatting'
2021-02-25 14:46:48 +01:00
Eelco Dolstra
683d99e846
Merge remote-tracking branch 'origin/feature/stdlib-builtins-extension'
2021-02-25 14:22:49 +01:00
Yann Hamdaoui
3a6d9c83bd
Merge pull request #297 from tweag/fix/approximate-list-type
...
[Fix]Wrong apparent type for list literals
2021-02-25 12:17:44 +00:00
Yann Hamdaoui
e36a35ff46
Parsing: add != op, accept more general list elements
2021-02-25 09:52:33 +01:00
Yann Hamdaoui
b250b0f2c3
Add formatting check
2021-02-24 18:01:39 +01:00
Yann Hamdaoui
3b34fd36ad
Fix comments
2021-02-19 14:31:21 +01:00
Yann Hamdaoui
b3ab2bfa9d
Fix tests
2021-02-19 14:16:34 +01:00
Yann Hamdaoui
d5d20d2760
Remove the field interpolation syntax
2021-02-19 14:16:34 +01:00
Yann Hamdaoui
f6b370dbfc
Get rid of direct dependency to either
2021-02-19 14:16:34 +01:00
Yann Hamdaoui
d0b246d210
Improve field access and definition syntax
...
Support an attribute path syntax to define nested records more easily.
Simplify interpolated field names syntax, which just uses vanilla
strings. Allow piecewise record definitions by merging the potential multiple
values for one field.
2021-02-19 14:15:04 +01:00
Théophane Hufschmitt
32398fdd83
Merge pull request #291 from tweag/fix/serde-substraction-overflow
...
[Fix]Avoid panic when handling serde_json errors with no location
2021-02-18 14:34:31 +01:00
Yann Hamdaoui
6668b80cb8
Add regression test for apparent type of lists
2021-02-16 17:09:15 +01:00
Yann Hamdaoui
7c2059cc5f
Fix wrong apparent type for lists
...
The apparent type of list was determined to be `Inferred(List)`, but this
type is actually less precise that the type that would be inferred,
which can be `List Num` for example. The typechecker was wrongly giving
less precise type to binding of the form `val = [ .. ]` inside
statically typed code.
2021-02-16 16:49:24 +01:00
Yann Hamdaoui
851145821c
Fix equality on null
2021-02-11 18:52:36 +01:00
Yann Hamdaoui
761127879f
Add the null value
2021-02-11 18:39:52 +01:00
Yann Hamdaoui
e9ab13bc29
Avoid panic when handling serde_json errors with no location
2021-02-11 16:54:26 +01:00
Yann Hamdaoui
ffccc8ab36
Implement clippy's suggestion
2021-02-10 10:09:13 +01:00
Yann Hamdaoui
e0a64dca82
Formatting
2021-02-10 09:55:24 +01:00
Yann Hamdaoui
0d5cc3b568
Add tests for serialize/deserialize operators
2021-02-10 09:55:10 +01:00
Yann Hamdaoui
1a9dfda58d
Fix TOML serialization to avoid ValueAfterTable error
2021-02-10 09:53:33 +01:00
Yann Hamdaoui
858a2d1b09
Change Unknown to Other in typeOf
2021-02-10 09:53:33 +01:00
Yann Hamdaoui
f60e987162
Fix missing type annotation
2021-02-10 09:53:32 +01:00
Yann Hamdaoui
c2ee0d680e
Add wrapper for hash and (de)serialize in stdlib
2021-02-10 09:48:43 +01:00
Yann Hamdaoui
89fdb39ed3
Implement hash and (de)serialize operators
2021-02-10 09:48:41 +01:00
Yann Hamdaoui
eaffccde11
Typechecking of hash,(de)serialize
2021-02-10 09:47:59 +01:00
Yann Hamdaoui
e58c9311b2
Add syntax for hash, serialize and deserialize operators
2021-02-10 09:47:59 +01:00
Yann Hamdaoui
7b1396c4a4
Add dependencies to hash librairies
2021-02-10 09:47:59 +01:00
Yann Hamdaoui
9592d7935b
Merge pull request #290 from tweag/fix/github-actions-syntax
...
Fix arguments to the on attribute in GH actions
2021-02-09 18:48:33 +00:00
Yann Hamdaoui
9de950bb7c
Small fixes and renaming
2021-02-09 15:52:43 +01:00
Yann Hamdaoui
71de5c2092
Fix arguments to the on attribute in GH actions
2021-02-08 19:29:52 +01:00
Yann Hamdaoui
30a7546ce7
Merge pull request #274 from tweag/migrate-to-github-actions
...
Migrate to CI to Nix and GitHub Actions
2021-02-08 18:19:07 +00:00
Yann Hamdaoui
530ce82089
Add missing cachix key in some GH actions
2021-02-08 18:48:58 +01:00
Rok Garbas
b383db46a1
remove some more debugging
2021-02-08 13:02:02 +01:00
Yann Hamdaoui
62558b2703
Merge pull request #289 from tweag/fix/warnings-and-clippy
...
[Cleaning]Implement clippy's recommandations
2021-02-08 09:17:58 +00:00
Rok Garbas
c9e3da380d
remove debugging
2021-02-07 19:44:38 +01:00
Rok Garbas
a480b903b0
Add docker image to the list of packages
2021-02-07 19:43:11 +01:00
Yann Hamdaoui
5c175fa05d
Implement clippy recommandations
2021-02-05 17:47:48 +01:00
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