[GHC] #2026: Simple data types in System.Posix.IO should have Eq,
Ord, etc. instances
GHC
trac at galois.com
Tue Jan 8 10:56:44 EST 2008
#2026: Simple data types in System.Posix.IO should have Eq, Ord, etc. instances
----------------------------------+-----------------------------------------
Reporter: wjt | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries (other) | Version: 6.6.1
Severity: minor | Keywords:
Difficulty: Easy (1 hr) | Testcase:
Architecture: Unknown | Os: Unknown
----------------------------------+-----------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2026>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list