Skip to content

Commit

Permalink
Enable builtin list syntax in the standard library (#2282)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz authored Aug 8, 2023
1 parent 98b3621 commit 9718433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion juvix-stdlib
9 changes: 1 addition & 8 deletions tests/Compilation/positive/test059.juvix
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
-- builtin list
module test059;

import Stdlib.Data.Nat open;
import Stdlib.System.IO open;

syntax infixr 5 ::;
builtin list
type List (a : Type) :=
| nil : List a
| :: : a → List a → List a;
import Stdlib.Prelude open hiding {head};

mylist : List Nat;
mylist := [1; 2; 3 + 1];
Expand Down

0 comments on commit 9718433

Please sign in to comment.