Re: importing List constructor

2000-05-16 Thread Marcin 'Qrczak' Kowalczyk
Tue, 16 May 2000 11:14:50 +0400 (MSD), S.D.Mechveliani <[EMAIL PROTECTED]> pisze: > > (+) = Prelude.+ > > ghc-4.06: > T.hs:10: parse error on input `Prelude.+' Sorry, (+) = (Prelude.+) And also: `Prelude.elem`, not Prelude.`elem`. -- __("

Re: importing List constructor

2000-05-16 Thread Patrik Jansson
On Tue, 16 May 2000, S.D.Mechveliani wrote: > ghc-4.06: > T.hs:10: parse error on input `Prelude.+' However strange it might look, qualified operators still obey the same rules as unqualified operators: "Prelude.+" is an infix operator and must be surrounded by parenthesis to make it a function.

Re: importing List constructor

2000-05-16 Thread S.D.Mechveliani
ghc-4.06: T.hs:10: parse error on input `Prelude.+'

Re: importing List constructor

2000-05-15 Thread Marcin 'Qrczak' Kowalczyk
Tue, 16 May 2000 09:28:15 +0400 (MSD), S.D.Mechveliani <[EMAIL PROTECTED]> pisze: > (+) = Prelude.Num.(+) reports wrong syntax. (+) = Prelude.+ -- __("$ P+++ L++

importing List constructor

2000-05-15 Thread S.D.Mechveliani
I thank people who explained the question of importing the List constructor. There remains a very practical question of how to improve the program --- import qualified Prelude import Prelude ( [](..), Integer ) g (x:xs) = xs c