Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,243
    • Issues 5,243
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 568
    • Merge requests 568
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #540
Closed
Open
Issue created Apr 29, 2001 by mieszko@trac-mieszko

-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
Assignee
Assign to
Time tracking