From 005fbe2dd67c6ec77282179032f94ffa6cb7788c Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 7 Jun 2009 16:45:00 -0400 Subject: Fix datatype import bug in Elaborate; fix server-side source setting; more standard library stuff --- lib/ur/list.ur | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/ur/list.ur') diff --git a/lib/ur/list.ur b/lib/ur/list.ur index 771cddc3..60cd7316 100644 --- a/lib/ur/list.ur +++ b/lib/ur/list.ur @@ -171,3 +171,15 @@ fun all [m] f = in all' end + +fun app [m] (_ : monad m) [a] f = + let + fun app' ls = + case ls of + [] => return () + | x :: ls => + f x; + app' ls + in + app' + end -- cgit v1.2.3