From 5e90aecd290f5ae8b4b10367cc0d8995be2a1d9d Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 4 Dec 2010 11:15:20 -0500 Subject: New argument to transactional free functions, to specify whether we are about to retry --- tests/transact.ur | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/transact.ur (limited to 'tests/transact.ur') diff --git a/tests/transact.ur b/tests/transact.ur new file mode 100644 index 00000000..baf8ab94 --- /dev/null +++ b/tests/transact.ur @@ -0,0 +1,13 @@ +fun listHell n = + if n <= 0 then + [] + else + n :: List.append (listHell (n-1)) (listHell (n-1)) + +fun doit r = + Transactional.foo; + return {[listHell (readError r.N)]} + +fun main () = return +
+
-- cgit v1.2.3