Haddock: how to disable the JavaScript menus?

Simon Marlow simonmar at microsoft.com
Tue Sep 28 08:33:35 EDT 2004


On 27 September 2004 21:15, Peter Simons wrote:

> Simon Marlow writes:
> 
>  > This change has now been made.
> 
> Uh ... any hints what has changed? A new command line flag?
> 
> 
>  > we need a way to retain the collapsed/expanded state
>  > between page transitions (JavaScript hackers apply
>  > here!).
> 
> I am not certain whether these collapsed menus are a good
> idea. Admitted, they make the page shorter at first glance.
> But at the same time, they make it impossible to search in
> the text!
> 
> When I want to see the documentation for, say Data.List, I
> hit CTRL-HOME in Mozilla, then type "/data.lis", and finally
> press RETURN to follow the link -- and I have reached the
> page. The hands never left the keyboard. With collapsed
> menus, that doesn't work anymore.
> 
> Anyway, if there was an option to enable/disable that
> functionality in Haddock, all would be well. :-)

The tree is expanded by default now (Sven Panne made the change a few
days ago).

I take your point about searching in Mozilla - I'm a big fan of
Firefox's incrememtal search too.

The problem I was originally trying to solve is when you have a huge
number of instances for a datatype (look at the docs for Prelude, for
example), which makes it hard to navigate the page.  I'm not sure if we
can solve this *and* have searching do the right thing.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list