>  | I just convinced my local sysadmin to attach a new MIME type to
>  | outgoing Haskell programs sent by our web server, namely
>  | "application/x-haskell".
>  :
>  | My goal in this is to get a browser to launch Hugs/Winhugs on the
>  | podium machine where I make lectures whenever I click on a link to
>  | Haskell code.
> 
> I am not sure if this is such a good idea.

[.. system "rm *" example omitted ..]

I think this is an orthogonal issue.  If a particular user wants to 
bind application/x-haskell to runhugs, that's their own business, just 
as it is with application/octet-stream (.exe) or application/x-sh 
(Bourne shell script).  It is the job of the web server to be as 
informative as possible about what it is sending out, and the job of 
the browser to sensibly handle this information.

Thus, I think having a MIME type for Haskell programs is a good
idea...  maybe your browser will automatically syntax-highlight them,
or put them in your Haskell modules directory, or offer to run them,
or some other sensible action.  Information is a good thing.

OTOH, no browser should *by default* be set to execute 
application/x-haskell documents, any more than it should run Word on 
application/msword or exec on application/octet-stream.

My GBP 0.02.

--KW 8-)



Reply via email to