import qualified Prelude

1997-10-02 Thread Graeme Moss
Suppose I wish to write the following program: > main :: IO () > main = print True using a qualified import of the Prelude: > import qualified Prelude > > main :: Prelude.IO Prelude.() > main = Prelude.print Prelude.True The third line is syntactically incorrect as `()' is a non-standard cons

[fwd] CFP PAP/PACT98

1997-10-02 Thread Oskar Bartenstein
I forward this to you as received from The Practical Application Company. Please contribute if possible. Best regards Oskar Bartenstein [EMAIL PROTECTED] http://www.ifcomputer.com - PAP/PACT98 CALL FOR PAPER

Re: import qualified Prelude

1997-10-02 Thread John C. Peterson
All special syntax, like (), resolves to Prelude names regardless of imports. Your second try is correct - it's hbc that's broken. John

RE: Heap Sort

1997-10-02 Thread Carsten Kehler Holst
Merge Sort vs. Heap Sort (ala Jon) As far as I can see the difference between merge sort and heap sort as described by Jon is almost non existing. Merge sort as I wrote it in 92 (it might have been 93 :-). Using Jon's naming: runify x = [x] merge [] ys = ys merge xs [] = xs merge xrun@(x:xs) y