[darcs-devel] darcs patch: Use System.Process on Windows (and 3
more)
Eric Y. Kow
eric.kow at gmail.com
Sun Dec 31 10:46:44 PST 2006
On Sun, Dec 31, 2006 at 18:59:38 +0100, Eric Y. Kow wrote:
> > On Mon, Dec 25, 2006 at 11:46:36PM +0100, Eric Kow wrote:
> > > These patches make Simon Marlow's runProcess stuff compile under GHC
> > > 6.4.2. Note that I haven't tested them very thoroughly. Just did a
> > > darcs record with long comments using both a 6.4.2 and 6.6 build. This
> > > doesn't tell us very much, except that darcs finds notepad.
> >
> > Looks reasonable to me
>
> Thanks; I'll just push them in, then.
Argh! I spoke too soon. These patches make the external.pl script hang
on Unix. The problem seems to be that the patch switches from the
bracket in the old IO module to the new Control.Exception.bracket.
bracket before after m = do | bracket before after thing =
x <- before | block (do
rs <- try (m x) | a <- before
after x | r <- catch
case rs of | (unblock (thing a))
Right r -> return r | (\e -> do { after a; throw e })
Left e -> ioError e | after a
| return r
| )
try f = |
catch (do r <- f |
return (Right r)) |
(return . Left) |
Anyway, I don't really have time to look at this right now. I guess this
will have to wait till next week.
--
Eric Kow http://www.loria.fr/~kow
PGP Key ID: 08AC04F9 Merci de corriger mon français.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20061231/5382a6a9/attachment.pgp
More information about the darcs-devel
mailing list