Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2521 closed bug (fixed)

Trailing colon on GHC_PACKAGE_PATH doesn't work with ghc-pkg.

Reported by: cjs Owned by: simonmar
Priority: normal Milestone:
Component: Compiler Version: 6.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

According to section 5.8.4.1 of the Users' Guide, appending a colon to GHC_PACKAGE_PATH should include the system libraries, and this can be verified with ghc-pkg. While the colon does appear to work for ghci (as verified with -v), it does not appear to work for ghc-pkg.

$ echo '[]' > temp.conf
$ export GHC_PACKAGE_PATH=`pwd`/temp.conf:
ghc-pkg list
/home/cjs/temp.conf:
$ 

Change History (4)

comment:1 Changed 6 years ago by simonmar

  • Difficulty set to Unknown
  • Owner set to simonmar

I'm in ghc-pkg at the moment...

comment:2 Changed 6 years ago by simonmar

  • Resolution set to fixed
  • Status changed from new to closed

Fixed:

Mon Aug 18 12:33:45 BST 2008  Simon Marlow <marlowsd@gmail.com>
  * FIX #2521: trailing colon in GHC_PACKAGE_PATH
  This was broken in the System.FilePath switchover, since filepath's
  splitSearchPath doesn't do what we want (it ignores empty
  components on Windows, and treats them as "." on Unix).  So we use our
  own hand-rolled version, just like GHC.

comment:3 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:4 Changed 6 years ago by simonmar

  • Operating System changed from Multiple to Unknown/Multiple
Note: See TracTickets for help on using tickets.