Mercurial > urweb
view lib/ur/monad.ur @ 843:9f0ea203a1ca
List.all; fix ANDALSO/ORELSE parsing precedence
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 07 Jun 2009 14:15:22 -0400 |
parents | 74e9e7642f08 |
children | d1d0b18afd3d |
line wrap: on
line source
fun exec [m ::: Type -> Type] (_ : monad m) [ts ::: {Type}] r (fd : folder ts) = foldR [m] [fn ts => m $ts] (fn [nm :: Name] [v :: Type] [rest :: {Type}] [[nm] ~ rest] action acc => this <- action; others <- acc; return ({nm = this} ++ others)) (return {}) [ts] fd r