1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-13 19:49:20 +03:00
juvix/tests/positive
Paul Cadman be9872ea06
Add builtin if (#1585)
```
builtin boolean-if
if : {A : Type} → Bool → A → A → A;
if true x _ := x;
if false _ x := x;
```

This allows a backend to translate if directly, so that only one branch
is evalutated.

An example compilation of if is given for the legacy backend for testing.
2022-10-14 10:06:05 +01:00
..
265 remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
272 remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
BuiltinsMultiImport Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
BuiltinsMultiOpenImport Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
FullExamples remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
Imports remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
Internal remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
issue1333 Support type aliases (#1404) 2022-07-25 12:30:18 +02:00
issue1466 Properly type check patterns that need normalization (#1472) 2022-08-21 12:16:26 +02:00
MiniC Add builtin if (#1585) 2022-10-14 10:06:05 +01:00
MiniHaskell remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
QualifiedConstructor remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
QualifiedSymbol Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
QualifiedSymbol2 Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
Reachability remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
StdlibImport remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
StdlibList remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
Termination remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
Axiom.juvix Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
BuiltinsBool.juvix Add builtin if (#1585) 2022-10-14 10:06:05 +01:00
Foreign.juvix Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
Inductive.juvix Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
Judoc.juvix remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
juvix.yaml Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
Literals.juvix Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
Operators.juvix remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
Parsing.juvix remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
Polymorphism.juvix remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
PolymorphismHoles.juvix remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
ShadowPublicOpen.juvix Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
Symbols.juvix remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00
TypeAlias.juvix remove ≔ from the language and replace it by := (#1563) 2022-09-30 10:55:32 +10:00