Hi,

Possibly this has already been spotted, I don't follow the bus lists.
Anyway, the following snippet of code is an error to GHC, while Hugs
thinks it's ok.. 

main = do
        foo
        where
        bar = ...

GHC gives the error 
>  parse error on input: "where"
        
change the indentation to 

main = do
        foo
       where
        bar = ...

and everything works fine.  I don't know which of these excellent pieces
of software is at fault, but personally prefer the hugs interpretation,
which comes naturally to someone who uses the 'tab' key a lot :)

noel

-- 
Noel Winstanley
Dept of Computing Science
University of Glasgow
http://www.dcs.gla.ac.uk/~nww/       
mailto:[EMAIL PROTECTED]

Reply via email to