[Haskell-cafe] viewing HS files in Firefox
Johan Tibell
johan.tibell at gmail.com
Thu Jan 10 09:32:37 EST 2008
On Jan 10, 2008 1:55 PM, Jules Bean <jules at jellybean.co.uk> wrote:
>
> 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
>
My problem is when viewing plain darcs repositories (like mine on
darcs.johantibell.com which I recently fixed with the above mime type
hack.)
-- Johan
More information about the Haskell-Cafe
mailing list