catala/compiler/dcalc
Louis Gesbert 1efda5ca22 Typing defaults: support nested priorities
The way nested priorities are encoded use `< < excs | true :- nested > :- x >`,
which imply that `nested` can actually be ∅ ; to cope with this, the typing of
default terms is made more generic (the return type is now the same as the
`cons` type `'a`, rather than `<'a>`). For the general case, we add an explicit
`EPureDefault` node which just encapsulates its argument (a `return`, in monad
terminology).
2023-11-27 11:09:08 +01:00
..
ast.ml Improve integration of marks into the main AST 2023-05-17 17:37:00 +02:00
ast.mli Improve integration of marks into the main AST 2023-05-17 17:37:00 +02:00
dcalc.mld Last typo 2023-06-03 15:32:38 +02:00
dune Build: remove unnecessary ppx on dcalc, lcalc 2023-05-17 14:08:32 +02:00
from_scopelang.ml Typing defaults: support nested priorities 2023-11-27 11:09:08 +01:00
from_scopelang.mli Uniform naming of conversion modules across compilation passes 2022-11-22 12:08:18 +01:00
invariants.ml replace let _ by let () or add type annotation 2023-09-09 22:02:39 +02:00
invariants.mli Cleanliness and aesthetics 2023-04-18 15:45:30 +02:00