#4273: TextEncoding lacks Eq and Show instances
------------------------------+---------------------------------------------
Reporter: bos | Owner: simonmar
Type: feature request | Status: closed
Priority: normal | Milestone: 7.0.1
Component: libraries/base | Version: 6.12.3
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
------------------------------+---------------------------------------------
Comment(by judahj):
I'd prefer that we avoided an Eq instance. Eventually `TextEncoding` will
be an exposed datatype which could be defined by other libraries than
`base`. When that happens, there won't be any guarantee that two
`TextEncoding`s with the same name will actually do the same thing. So
allowing comparisons with `==` will be misleading, I think.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4273#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs