#4377: sizedText function for Text.PrettyPrint
---------------------------------+------------------------------------------
Reporter: lerkok | Owner:
Type: proposal | Status: new
Priority: normal | Component: libraries/pretty
Version: | Keywords: text, sizedText, pretty
printing, Text.PrettyPrint
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Changes (by lerkok):
* type: feature request => proposal
Comment:
The proposed `sizedText` function can also be viewed as a generalization
of the already existing `zeroWidthText` function, except with arbitrary
sizes not just `0`. In this case we can define:
{{{
zeroWidthText = sizedText 0
}}}
or just export `sizedText` to cover both use cases.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4377#comment:1>
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