Add IsString and Monoid instances for Doc
The proposal is to add the following to Text.PrettyPrint.HughesPJ:
instance IsString Doc where
fromString = text
instance Monoid Doc where
mempty = empty
mappend = (<>)
See the attached patch.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.12.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/pretty |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |