[Haskell-cafe] Very crazy

Andrew Coppin andrewcoppin at btinternet.com
Tue Sep 25 05:56:09 EDT 2007

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...

More information about the Haskell-Cafe mailing list