[Haskell-cafe] viewing HS files in Firefox

Jules Bean jules at jellybean.co.uk
Thu Jan 10 07:55:41 EST 2008


Johan Tibell wrote:
> Adding the following to my lighttpd config (on Ubuntu Feisty) solves
> the problem from the server side:
> 
> #### external configuration files
> ## mimetype mapping
> 
> # change mime type for haskell source files so they get displayed
> # inside the browser
> include_shell "/usr/share/lighttpd/create-mime.assign.pl"
> mimetype.assign           += ( ".hs" => "text/plain",
>                                ".lhs" => "text/plain" )

Fortunately the new haddock uses hscolour, so HS files are served as 
(colourised!) HTML and the problem is no longer a problem, for me.

Jules


More information about the Haskell-Cafe mailing list