#4378: Add IsString and Monoid instances for Doc
---------------------------------+------------------------------------------
Reporter: basvandijk | Owner:
Type: proposal | Status: new
Priority: normal | Component: libraries/pretty
Version: 6.12.3 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4378>
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