Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,262
    • Issues 4,262
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 405
    • Merge Requests 405
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #540

Closed
Open
Opened 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
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#540