[GHC] #1612: GHC_PACKAGE_PATH and $topdir bug

GHC trac at galois.com
Sun Aug 12 07:08:12 EDT 2007


#1612: GHC_PACKAGE_PATH and $topdir bug
-----------------------+----------------------------------------------------
  Reporter:  eivuokko  |          Owner:         
      Type:  bug       |         Status:  new    
  Priority:  normal    |      Milestone:         
 Component:  Compiler  |        Version:  6.6.1  
  Severity:  normal    |       Keywords:         
Difficulty:  Unknown   |             Os:  Unknown
  Testcase:            |   Architecture:  Unknown
-----------------------+----------------------------------------------------
In ghc-pkg $topdir is replaced according to path to package that is
 considered global - the last on in GHC_PACKAGE_PATH (if it doesn't contain
 trailing ';')

 Following shows how (head, 1.1.7) Cabal's haddock-command gets broken.

 {{{
 C:\Users\eivuokko>copy con temp.conf
 []
 ^Z
         1 file(s) copied.

 C:\Users\eivuokko>set
 GHC_PACKAGE_PATH=c:\tools\ghc\ghc-6.6.1\package.conf;c:\Us
 ers\eivuokko\temp.conf

 C:\Users\eivuokko>ghc-pkg field base haddock-interfaces
 haddock-interfaces: c:\Users\eivuokko\html\libraries\base\base.haddock

 C:\Users\eivuokko>set GHC_PACKAGE_PATH=

 C:\Users\eivuokko>ghc-pkg field base haddock-interfaces
 haddock-interfaces:
 C:/tools/ghc/ghc-6.6.1\html\libraries\base\base.haddock

 C:\Users\eivuokko>
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1612>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list