Skip to content

-i<dirs> reverses <dirs>

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)
Trac metadata
Trac field Value
Version 5.0
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component Driver
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information