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
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
All special syntax, like (), resolves to Prelude names regardless of
imports. Your second try is correct - it's hbc that's broken.
John
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