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`.
--
__("
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.
ghc-4.06:
T.hs:10: parse error on input `Prelude.+'
Tue, 16 May 2000 09:28:15 +0400 (MSD), S.D.Mechveliani <[EMAIL PROTECTED]> pisze:
> (+) = Prelude.Num.(+) reports wrong syntax.
(+) = Prelude.+
--
__("$ P+++ L++
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