[darcs-users] darcs patch: eliminate autogeneration of Workaround.hs (and 1 more)

David Roundy droundy at darcs.net
Sat Oct 11 17:04:17 UTC 2008

On Sat, Oct 11, 2008 at 11:20 AM, Petr Rockai <me at mornfall.net> 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.


More information about the darcs-users mailing list