Opened 16 years ago

Closed 16 years ago

Last modified 48 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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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


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:
Hsc static flags: -static -fignore-interface-pragmas
-fomit-interface-pragmas -fdo-lambda-eta-expansion
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 16 years ago.

Download all attachments as: .zip

Change History (2)

Changed 16 years ago by mieszko

Attachment: example.tar.2.gz added

comment:1 Changed 16 years ago by simonmar

Status: assignedclosed
Logged In: YES 

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