getChar in ghc-4.02, hugs

1999-04-30 Thread S.D.Mechveliani
ghc-4.02 and hugs98-March99 perform differently the program main = getChar putStr "finished" ghc accepts the input keys a, b ... without proceeding to putStr, finally, the Enter key forces this putStr. hugs gets to putStr after any first key stroke (which was my aim).

Int/Integer cost

1999-04-30 Thread S.D.Mechveliani
What is the recent implementors disposition concerning Int vs Integer cost? Hugs-98-March99, ghc-4.02 (-O -O2-for-C) show the ratio about 4. So, my program introduces type PPInt to be switched Int/Integer to represent integers in the polynomial exponents. This causes certain complication:

RE: STL Like Library For Haskell

1999-04-30 Thread Frank A. Christoph
But how important is having a fold well defined. For many common numerical operations such as summing a list, taking the product of a list, etc. The order in which the elements get folded does not matter. All that matters is that each element gets represented exactly once. From an algebraic

Re: STL for Haskell

1999-04-30 Thread Laszlo Nemeth
Chris Okasaki wrote: Unfortunately, it's not quite that easy. For a library with several implementations of, say, sets, you want the various implementations to support the same fold function. In other words, in a library with abstract data types, you want the folds to be over the