mirror of
https://github.com/anoma/juvix.git
synced 2025-01-05 22:46:08 +03:00
c55f04dc46
Now it's possible to write `1 + 2` in the Juvix REPL and not get an error. Closes #1645. Co-authored-by: Jonathan Cubides <jonathan.cubides@uib.no>
15 lines
183 B
Plaintext
15 lines
183 B
Plaintext
module LitInteger;
|
|
|
|
open import Stdlib.Prelude public;
|
|
|
|
main : Nat;
|
|
main := 1 + 2;
|
|
|
|
nilNat : List Nat;
|
|
nilNat := nil;
|
|
|
|
cons : Nat -> List Nat -> List Nat;
|
|
cons a xs := a :: xs;
|
|
|
|
end;
|