runhugs requires non-literate program

Sigbjorn Finne sof@galconn.com
Fri, 15 Jun 2001 10:01:34 -0700


Hi,

rename the file to hello.lhs & have another go.

=> Hugs determines whether the file is a literate one
by looking at the file extension (.lhs and .verb files
are the only by-default literate extensions). You can
default to always using literate scripts via the 'l' flag.

--sigbjorn

----- Original Message ----- 
From: "Dean Herington" <heringto@cs.unc.edu>
To: <hugs-bugs@haskell.org>
Sent: Friday, June 15, 2001 09:42
Subject: runhugs requires non-literate program


> Contrary to the documention, it appears that runhugs (used explicitly or
> via #!) requires the program to be non-literate.
> 
> I'm running Hugs versions of February 2000 and February 2001 on Solaris
> machines.
> 
> buzzard(163)% cat ./hello-lit
> #!/stotts2/epa1/hugs98-Feb2001/release/solaris/bin/runhugs
> 
> > module Main where
> > main = putStrLn "Hello, World!"
> buzzard(164)% ./hello-lit
> runhugs: Error occurred
> Reading file "./hello-lit":
> Parsing
> ERROR ./hello-lit:3 - Syntax error in input (unexpected symbol ">")
> 
> 
> buzzard(165)% cat ./hello-nonlit
> #!/stotts2/epa1/hugs98-Feb2001/release/solaris/bin/runhugs
> 
> module Main where
> main = putStrLn "Hello, World!"
> buzzard(166)% ./hello-nonlit
> Hello, World!
> buzzard(167)%
> 
> 
> _______________________________________________
> Hugs-Bugs mailing list
> Hugs-Bugs@haskell.org
> http://www.haskell.org/mailman/listinfo/hugs-bugs