On Sat, Oct 11, 2008 at 11:20 AM, Petr Rockai <[EMAIL PROTECTED]> wrote:
> Would it be feasible to use this instead?
>
> import System.Directory ( getPermissions, setPermissions, executable )
>
> setExecutable :: FilePath -> Bool -> IO ()
> setExecutable fp e = do p <- getPermissions fp
> setPermissions fp $ p { executable = e }
>
> It does require System.Directory which might be unavailable in older GHC
> maybe?
> Or is that a hackage module? Can't recall and don't have anything but GHC 6.8
> around... Anyhow, it should be portable to windows, where this is either
> hopefully a noop or it might involve NTFS ACLs, again, I have no idea. Maybe
> some GHC folks might want to comment.
Actually, that looks pretty good, so long as it works under windows.
Do you want to send a patch? Or we could wait on hearing from someone
who knows how Permissions behaves.
David
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users