Opened 13 years ago

Closed 13 years ago

Last modified 44 years ago

#540 closed bug (Fixed)

-i<dirs> reverses <dirs>

Reported by: mieszko Owned by: simonmar
Priority: normal Milestone:
Component: Driver Version: 5.0
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The GHC 5.0 documentation (section 4.9.2) claims that
-i<dirs> `prepends a colon-separated list of dirs to
the "import directories" list', but it doesn't mention
that the <dirs> list is reversed before prepending. 
So, for instance, if I specify

	-I.:SomeDir

then SomeDir is searched before the cwd is, which
matters when they contain files with the same name.  I
found this a bit counterintuitive.  The attached
tarball gives an example.

System info (uname -a):

Linux sandcastle 2.4.2 #1 Sat Mar 17 11:15:33 EST 2001
i686 unknown

ghc identifies itself as:

Glasgow Haskell Compiler, Version 5.00, for Haskell 98,
compiled by GHC version 5.00
Using package config file:
/usr/lib/ghc-5.00/package.conf
Hsc static flags: -static -fignore-interface-pragmas
-fomit-interface-pragmas -fdo-lambda-eta-expansion
-flet-no-escape
ghc-5.00: no input files
Usage: For basic information, try the `--help' option.

(ghc came from the Debian/unstable ghc5 package)

Attachments (1)

example.tar.2.gz (438 bytes) - added by mieszko 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by mieszko

comment:1 Changed 13 years ago by simonmar

  • Status changed from assigned to closed
Logged In: YES 
user_id=48280

Fixed; thanks.
Note: See TracTickets for help on using tickets.