| Sorry. GHC version 0.29. FiniteMap version 6, it seems ({-# GHC PRAGMA
| INTERFACE VERSION 6 #-} at the top). Compilation with verbose output appended
| to this message. It's messy ;)
In Convert.lhs, add
import PreludeStdIO( Maybe )
Simon
| However, in return, perhaps somebody can supply me with parse trees for
| the following:
|
| - - 1(accepted by nhc and hbc)
| (- 1 `n6` 1) where infix 6 `n6` (accepted by nhc, hbc, ghc)
| (- 1 `r6` 1) where infixr 6 `r6` (accepted by nhc, hb
| Is the following legal Haskell?
|
| > infixr 0 `foo`
| > infixr 0 `bar`
| > ...
| > dubious a b c = a `foo` b `bar` c
|
| According to the grammar in the Haskell report, I don't think it is.
| However, ghc-0.24 (ancient, I know) and Hugs 1.3 both accept it without
| complaint.
I believe that
> Hi,
>
> Is the following legal Haskell?
>
> > infixr 0 `foo`
> > infixr 0 `bar`
> >
> > x `foo` y = "foo(" ++ x ++ "," ++ y ++ ")"
> > x `bar` y = "bar(" ++ x ++ "," ++ y ++ ")"
> > dubious a b c = a `foo` b `bar` c
>
> According to the grammar in the Haskell report, I don't think it is.
> H
Libor Skarvada, you wrote:
>
> > > infixr 0 `foo`
> > > infixr 0 `bar`
>
> I do not see any problem here.
[...]
> But if we mix the associativity like
> infixl 0 `foo`
> infixr 0 `bar`
> then the parsing of the expression above is not unique, and eg. Hugs
> complains
> ERROR "tmp.hs" (line 7)
On Tue, 18 Mar 1997, Simon L Peyton Jones wrote:
# You don't say which version of ghc, nor which verison of FiniteMap you are
# using, nor do you enclose the error message.
Sorry. GHC version 0.29. FiniteMap version 6, it seems ({-# GHC PRAGMA
INTERFACE VERSION 6 #-} at the top). Compilation wi
Fergus Henderson writes:
> Hi,
>
> Is the following legal Haskell?
>
> > infixr 0 `foo`
> > infixr 0 `bar`
> >
> > x `foo` y = "foo(" ++ x ++ "," ++ y ++ ")"
> > x `bar` y = "bar(" ++ x ++ "," ++ y ++ ")"
> > dubious a b c = a `foo` b `bar` c
>
> According to the grammar in the Ha
You don't say which version of ghc, nor which verison of FiniteMap you are
using, nor do you enclose the error message.
My guess: it's something to do with SPECIALIZE pragmas; if so, you can just
delete them. That would explain the -O part. I'm puzzled about why it
thinks PreludeStdIO has any
Hi,
Is the following legal Haskell?
> infixr 0 `foo`
> infixr 0 `bar`
>
> x `foo` y = "foo(" ++ x ++ "," ++ y ++ ")"
> x `bar` y = "bar(" ++ x ++ "," ++ y ++ ")"
> dubious a b c = a `foo` b `bar` c
According to the grammar in the Haskell report, I don't think it is.
However, ghc-0.24 (ancient,
Hello,
I have a module that imports FiniteMap. It compiles fine, unless I use the -O
option, which complains that it can't find PreludeStdIO(Maybe).
This is fair enough, because Maybe seems to be Haskell 1.3. So I should
compile with -fhaskell-1.3. But then I need to change all the lovely
contin
10 matches
Mail list logo