Vasili I. Galchin wrote:
It seems to me that in the code base somewhere that there is a
redefine of the keywordotherwise. I haven't read the Haskell 98
Report but I thought that it was not possible to redefine keywords. ??
otherwise is not a keyword. It is just defined as a normal function
Vasili I. Galchin wrote:
so Janis I have to look where the original author overrode otherwise?
If so, just great .. a ton of code. ;^(
No, you don't have to look for this. It is in the code snippet you sent:
swishParse :: String - String - SwishStateIO (Maybe RDFGraph)
swishParse fnam inp =
Hi Vasili,
This isn't really a shadowing/redefinition issue. Here's
a perfectly legitimate snippet that compiles fine:
f 0 = 0
f otherwise = 1+otherwise
Redefinition is when you have:
g = let otherwise = not in x
-- Kim-Ee
VasiliIGalchin wrote:
swishParse :: String - String -
I meant, of course,
g = let otherwise = not in otherwise
Sorry for the noise.
-- Kim-Ee
Kim-Ee Yeoh wrote:
Hi Vasili,
This isn't really a shadowing/redefinition issue. Here's
a perfectly legitimate snippet that compiles fine:
f 0 = 0
f otherwise = 1+otherwise
Redefinition is
Hello Vasili,
Sunday, June 28, 2009, 10:39:37 AM, you wrote:
; case fmt of
N3 - swishParseN3 fnam inp
otherwise -
do { swishError (Unsupported file format: ++(show fmt)) 4
; return Nothing
}
On Sun, Jun 28, 2009 at 12:49:12AM -0700, Kim-Ee Yeoh wrote:
This isn't really a shadowing/redefinition issue. Here's
a perfectly legitimate snippet that compiles fine:
f 0 = 0
f otherwise = 1+otherwise
What? It is a redefinition issue *as well*, but this kind of
warning isn't active by
On Jun 28, 2009, at 02:39 , Vasili I. Galchin wrote:
; case fmt of
N3- swishParseN3 fnam inp
otherwise -
do { swishError (Unsupported file format: ++(show
fmt)) 4
; return Nothing
}
}
I
Whoops, you're right.
Interestingly, the shadowing warnings vary between
the 2 examples I gave, i.e. shadowing within
'function definition' vs 'binding group'.
Felipe Lessa wrote:
On Sun, Jun 28, 2009 at 12:49:12AM -0700, Kim-Ee Yeoh wrote:
This isn't really a shadowing/redefinition