union +unix

unionFileModes :: FileMode -> FileMode -> FileMode
unix System.Posix.Files.ByteString, unix System.Posix.Files
Combines the two file modes into one that contains modes that appear in either.