summaryrefslogtreecommitdiff
path: root/src/test/test1.sail
diff options
context:
space:
mode:
authorKathy Gray2013-12-03 17:45:53 +0000
committerKathy Gray2013-12-03 17:45:53 +0000
commita740278c7d7aa64e3fade12301108f0e91cd8ee9 (patch)
treeb57ac1d6835fcd06c8e0c7ec677a61b6746a50c8 /src/test/test1.sail
parent362fcca9780c00d23733e1c9b4b3470455fb5ad7 (diff)
Syntax changes per discussion with Peter, as well as L2.ott document clean up.
Could not at this time return lists to [| |] from [|| ||] as the parser cannot distinguish a cast with enum’s syntactic sugar from the start of a parenthesised list (i.e. ( [|3|] ) And there are still conflicts with moving enums to [3], so those changes can’t be pushed in with current parser technology.
Diffstat (limited to 'src/test/test1.sail')
-rw-r--r--src/test/test1.sail4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test1.sail b/src/test/test1.sail
index 128a4a99..5c29f258 100644
--- a/src/test/test1.sail
+++ b/src/test/test1.sail
@@ -2,8 +2,8 @@ default Nat 'i
default Order 'o
default bool b
default forall 'a. list<'a> b
-val forall 'a, 'b . ('a * 'b) -> 'b pure snd
-val forall Type 'i, 'b. ('i * 'b) -> 'i pure fst
+val forall 'a, 'b . ('a * 'b) -> 'b effect pure snd
+val forall Type 'i, 'b. ('i * 'b) -> 'i effect pure fst
typedef int_list [name = "il"] = list<nat>
typedef reco = const struct forall 'i, 'a, 'b. { 'a['i] v; 'b w; }
typedef maybe = const union forall 'a. { Nne; 'a Sme; }