id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
1612,GHC_PACKAGE_PATH and $topdir bug,eivuokko,,"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>
}}}",bug,new,lowest,7.6.2,Package system,6.6.1,,,eivuokko,Windows,Unknown/Multiple,None/Unknown,Unknown,,,,
