Simple data types in System.Posix.IO should have Eq, Ord, etc. instances
When trying to use OpenMode in a Data.Map key, I noticed that it's not an instance of Ord or even Eq. Nor are OpenFileFlags, FdOption, LockRequest. I don't see particularly meaningful orderings for them, but meaningless orderings would be useful nonetheless.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.6.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries (other) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |