[GHC] #4377: sizedText function for Text.PrettyPrint

GHC cvs-ghc at haskell.org
Thu Oct 7 14:42:40 EDT 2010


#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


More information about the Glasgow-haskell-bugs mailing list