Haddock HTML mods

9 views
Skip to first unread message

Erik Rantapaa

unread,
May 25, 2016, 11:55:15 AM5/25/16
to HaskellMN
HI all,

I've been working on more Haddock HTML enhancements and I'm ready to demo it to more people.

The new feature are:

- hovering over an imported symbol will display a tool tip telling you from what module the symbol was imported.

- clicking on a symbol or name will tell you the type of the expression. Then you can press 'a' to expand the selection to the parent expression and the type of that will be shown. You can press 'a' multiple times until you get to a top-level expression. Pressing 's' will shrink the selection back down.

I've set up a demo at:


If you drill down to a hyperlinked-source page, e.g.:


and hover over, e.g., `shiftR` you should see "Imported from Data.Bits" pop up.

Also by clicking on that  `shiftR` and you should see it's type (in context).
Then try pressing the 'a' key and 's' keys.

So check it out and let me know what you think.

Erik


Kyle Marek-Spartz

unread,
May 25, 2016, 8:35:08 PM5/25/16
to Erik Rantapaa, HaskellMN
I like the hover text, but the type boxes seem to go to weird places,
e.g. clicking on the different places of accum puts the type in
different places, and never on the line that was clicked.

Neat improvement, though!
--
Kyle Marek-Spartz
Reply all
Reply to author
Forward
0 new messages