1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-06 06:53:33 +03:00
juvix/tests/positive/Operators.juvix
Jonathan Cubides 3b3ea45da9
Rename MiniJuvix to Juvix (#259)
* Renaming MiniJuvix to Juvix

* Make Ormolu happy

* Make Hlint happy

* Remove redundant imports

* Fix shell tests and add target ci to our Makefile

* Make pre-commit happy
2022-07-08 13:59:45 +02:00

16 lines
295 B
Plaintext

module Operators;
infixl 5 + ;
axiom + : Type → Type → Type;
plus : Type → Type → Type;
plus ≔ (+);
plus2 : Type → Type → Type → Type;
plus2 a b c ≔ a + b + c;
plus3 : Type → Type → Type → Type → Type;
plus3 a b c d ≔ (+) (a + b) ((+) c d);
end;