aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorCamil Staps2016-10-06 16:58:33 +0200
committerCamil Staps2016-10-06 16:58:33 +0200
commitb97063f65017cad107c870fefd39069f34bbf7ab (patch)
tree0b07569b026873076b7c21c7b3c0a9d4494a24c7 /examples
parentExamples (diff)
Adds a trace code
Diffstat (limited to 'examples')
-rw-r--r--examples/trace.fusp7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/trace.fusp b/examples/trace.fusp
new file mode 100644
index 0000000..2f78059
--- /dev/null
+++ b/examples/trace.fusp
@@ -0,0 +1,7 @@
+import list;
+
+trace p r = code trace p r;
+
+dup f x = f x x;
+
+main = map (dup trace) [1:[2:[3:[4:[5:[]]]]]];