Brandon S. Allbery KF8NH wrote:
On Sep 25, 2007, at 5:48 , Andrew Coppin wrote:
You've got to be kidding... I went to all the trouble of learning a
"scary logic programming language [sic]" just to avoid that damned
printf() function! :-/
Enh. :) On the other hand, I do wonder that nobody's written a
combinator-based numeric formatting library.
They probably have - it's probably based on Peano integers though. :-P
More seriously, I have no idea how you'd implement this in Haskell.
Presumably the standard show instance for Int, Double, etc. is in native
C? You could probably reimplement it in Haskell for the integer case,
but not for floating-point...
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe