Re: [GHC] #7457: printf's * doesn't like negative numbers
#7457: printf's * doesn't like negative numbers -+-- Reporter: elaforge | Owner: Type: bug | Status: new Priority: normal| Milestone: 7.8.1 Component: libraries/base| Version: 7.6.1 Keywords:| Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown |Testcase: Blockedby:|Blocking: Related:| -+-- Changes (by simonmar): * cc: augustss (added) * difficulty: = Unknown * milestone: = 7.8.1 Comment: Looking at the patch, it appears to remove some deliberate checks. CC'ing Lennart, who wrote the code. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7457#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #7457: printf's * doesn't like negative numbers
#7457: printf's * doesn't like negative numbers -+-- Reporter: elaforge | Owner: Type: bug | Status: new Priority: normal| Component: libraries/base Version: 7.6.1 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking:|Related: -+-- Text.Printf.printf has a bug where it doesn't like negative numbers for * modifiers: {{{ Prelude Text.Printf printf %*sx\n (-3) hi hix }}} In the C printf, this would be {{{ hi x }}} From looking at the source, it's a pretty easy bug to fix. Patch attached. I also included a patch to turn the mixed tabs and spaces into just spaces since I hate that stuff. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7457 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs