Add instance IsString ShowS where fromString = showString
It would be really nice to use OverloadedStrings when writing a definition of showsPrec in an instance for Show.
The attached patch adds the necessary instance to base/GHC/Show.lhs:
instance IsString ShowS where
fromString = showString
Note that this does require TypeSynonymInstances.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/base |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |