Re: mode argument

2000-05-31 Thread Fergus Henderson
On 01-Jun-2000, S.D.Mechveliani <[EMAIL PROTECTED]> wrote: > Why people do not complain on the mode argument outside of Haskell: > `zip -r ...' `unzip -t xxx.zip' `tar xvfz xxx.tar.gz' > ? People do indeed complain about Unix's habit of using cryptic option sequences like `-r', `-t' or

mode argument

2000-05-31 Thread S.D.Mechveliani
To my suggestion on the mode argument for some standard functions >> quotRem ... divRem ... >> >> And we can hardly invent the mode type better than Char, >> because any specially introduced mode types bring the long names. >> >> quotRem 'n' x (-3) looks better than the pair quotRem & divM

Re: unsafeinterleaveIO

2000-05-31 Thread Manuel M. T. Chakravarty
Antti-Juhani Kaijanaho <[EMAIL PROTECTED]> wrote, > On Wed, May 31, 2000 at 12:06:00PM +1000, Manuel M. T. Chakravarty wrote: > > The one hole I am most concerned about is > > access to standard OS services and code written in other > > languages > > FWIW, C has the same problem, and yet n+1 pro

Re: mode for standard functions

2000-05-31 Thread Matt Harden
"S.D.Mechveliani" wrote: > > More example on standard functions needing the *mode*: > in quotRem, quot, rem, > divMod, div, mod. > ... blather about adding a "Char" argument to standard functions ...

Module QuantumVector

2000-05-31 Thread Jan Skibinski
Here is our first attempt to model the abstract Dirac's formalism of Quantum Mechanics in Haskell. www.numeric-quest.com/haskell/QuantumVector.html The exerpt from the summary follows. Jan Skibinski

Re: mode for standard functions

2000-05-31 Thread Marcin 'Qrczak' Kowalczyk
Wed, 31 May 2000 13:54:40 +0400 (MSD), S.D.Mechveliani <[EMAIL PROTECTED]> pisze: > in quotRem, quot, rem, > divMod, div, mod. > > the latter triplet is unnecessary, if the first has the mode argumen

Re: unsafeinterleaveIO

2000-05-31 Thread Antti-Juhani Kaijanaho
On Wed, May 31, 2000 at 12:06:00PM +1000, Manuel M. T. Chakravarty wrote: > The one hole I am most concerned about is > access to standard OS services and code written in other > languages FWIW, C has the same problem, and yet n+1 programmers are happy with C (and its descendants). -- %%% Antti

Re: mode for standard functions

2000-05-31 Thread D. Tweed
On Wed, 31 May 2000, S.D.Mechveliani wrote: > And we can hardly invent the mode type better than Char, > because any specially introduced mode types bring the long names. > > quotRem 'n' x (-3) looks better than the pair quotRem & divMod, > and > quotRem QuotRemSuchAndSuch x (-3) >

Re: mode for standard functions

2000-05-31 Thread Patrik Jansson
On Wed, 31 May 2000, S.D.Mechveliani wrote: > And we can hardly invent the mode type better than Char, > because any specially introduced mode types bring the long names. > > quotRem 'n' x (-3) looks better than the pair quotRem & divMod, > and > quotRem QuotRemSuchAndSuch x (-3) >

mode for standard functions

2000-05-31 Thread S.D.Mechveliani
More example on standard functions needing the *mode*: in quotRem, quot, rem, divMod, div, mod. the latter triplet is unnecessary, if the first has the mode argument. And we can hardly invent the mo

RE: re-preluding

2000-05-31 Thread S.D.Mechveliani
Thanks a lot. As to `SYNTAX', all right, let it be two month later. It makes sense when it is in the *standard*. If it is only GHC feature, it is 50% good.

RE: re-preluding

2000-05-31 Thread Simon Peyton-Jones
| So, I set | import qualified Prelude | import Prelude hiding (Ord(..), Bounded(..), Num(..), Integral(..), | Fractional(..), subtract, fromIntegral, | even, odd, gcd, lcm, (^), (^^) | ) | ..., | and the user modules

Re: `span' vs `partition'. Reply

2000-05-31 Thread Marcin 'Qrczak' Kowalczyk
Wed, 31 May 2000 08:42:54 +0400 (MSD), S.D.Mechveliani <[EMAIL PROTECTED]> pisze: > partition :: Char -> (a -> Bool) -> [a] -> ([a],[a]) > groupBy :: Char -> (a -> a -> Bool) -> [a] -> [[a]] > sort(By) :: Char -> ... Please no! Using Char for a gener