S. Alexander Jacobson writes:
> I have started to move my Hugs CGI scripts into GHC.
> Here is an example hugs cgi script:
>
> -----helloCGI.lhs-----
> #!/usr/local/bin/runhugs
> > main=putStr "content-type: text/html\n\nhello world\n"
> -----------------------
>
> This is literate Haskell so it should be completely acceptable to any
> Haskell compiler/interpreter and Hugs does accept it.
> But, GHC rejects the #!/usr/local/bin/runhugs at the top of the script
> with the message:
>
> hello.lhs:1:1: parse error on input: "#!/"
>
hi,
this is a "feature" of the de-literate filter GHC is using, preserving
lines that appear to have CPP markup on them (i.e., lines that start
with '#'.) I've changed this to be more selective, #! will now be
weeded out. Fixed in the next release (3.02).
--Sigbjorn