#1720: 6.8.0.20070917 Haddock links use absolute paths with no "file://" prefix
------------------------+---------------------------------------------------
    Reporter:  guest    |        Owner:         
        Type:  bug      |       Status:  new    
    Priority:  high     |    Milestone:  6.8.1  
   Component:  None     |      Version:  6.8    
    Severity:  normal   |   Resolution:         
    Keywords:           |   Difficulty:  Unknown
          Os:  Windows  |     Testcase:         
Architecture:  Unknown  |  
------------------------+---------------------------------------------------
Comment (by duncan):

 We could blame either Cabal or Haddock.

 When using haddock's --use-package, haddock calls ghc-pkg to find the
 location of the dependent packages docs. It currently treats this as if it
 were already a valid url, which currently is never the case. It is
 currently always an absolute directory path (or empty) so haddock should
 convert it into a file:// url, including doing escaping.

 For the --read-interface it's less clear what to do. It can accept a http
 url so by extension we should really be passing valid file:// urls too. So
 then by that reasoning Cabal should duplicate the code to make a valid url
 from the output of ghc-pkg field $pkg haddock-html.

 Why have we never noticed this before? The ghc build system and haddock
 have been doing this for ages.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1720#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to