[darcs-users] Help converting Perl to Haskell

Eric Kow kowey at darcs.net
Wed Oct 22 08:33:40 UTC 2008


On Tue, Oct 21, 2008 at 20:33:32 -0700, Jason Dagit wrote:
> mkdir 'test_output', 0750;
> 
> If I use System.Directory.setPermissions, then I think the closest I
> can approximate those permissions is:
> setPermissions "test_output" (Permissions {readable = True, writable =
> True, executable = True, searchable = True})

For what it's worth, I think the Perl script was really just trying to
do the equivalent of chmod u+x (without caring about other users)

>       find (sub { chmod 0755, $_; }, @tmpdirs);

Likewise chmod u+w here.

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20081022/d897b4e4/attachment-0001.pgp 


More information about the darcs-users mailing list