Make absolute haddock paths proper URLs

Fixes #1064, #1406
Merge pull request #1407 from feuerbach/haddock-urls

Make absolute haddock paths proper URLs