To my "parsing bug" report on  STGHugs-Nov-2000
  Andy Gill <[EMAIL PROTECTED]>
  and  Simon Marlow <[EMAIL PROTECTED]>  respond on 15 Mar 2000


>>   Reading script "source/pol/EPol0_.hs":
>>   Parsing
>>   ERROR "source/pol/EPol0_.hs" (line 390): Syntax error in input
>>   (unexpected keyword "instance")

> I suspect that the offside rule is acting up. Somewhere (before line
> 390) you've got a where that is empty or wrongly indented.
> instances can only appear at top level, and it is being captured
> by the incorrectly used previous where.


Indeed. I am sorry.
60 lines above it is visible a typo of `where':

  reordEPol :: EPPOTerm -> EPol a -> EPol a
  reordEPol t (EPol ms _ pol) =
                let  { ecp = eppoECp t;  cmp (_,p) (_,q) = ecp q p }
                in
                EPol (sortBy cmp ms) t pol  where
                                            -----
  cToEMon :: [a] -> Z -> b -> EMon b
  ...



> Simon Marlow: Do you want to comment on why GHC works,
> and Hugs fails?


It is interesting.
Maybe, it is a kind of GHC misfeature?
By the way, these 60 lines, they, probably, work as expected in the
test!


More reports ******************************************************

1.
--------------
module T where

f = True

;  
--------------
Parsing
ERROR "./T.hs" (line 5):
 Syntax error in input (unexpected `;', possibly due to bad layout)

2.
Repeating several times  :l ...
with loading about as many modules as in the project I have sent you
recently leads to 
...
  typeChecking ... segmentation fault ...

Maybe, this is something with garbage collection.


------------------
Sergey Mechveliani
[EMAIL PROTECTED]



Reply via email to