
#10643: GHC cannot import submodules when run from subfolder -------------------------------------+------------------------------------- Reporter: FPtje | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1 Resolution: | Keywords: subfolder Operating System: Unknown/Multiple | import submodule cd Type of failure: GHC rejects | Architecture: valid program | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by FPtje): Shouldn't the -i problem you mention be resolved simply by giving those folder the highest priority? Standard behaviour for lots of compilers and interpreters? Haskell is a different language altogether. Rules from other compilers do not necesarily apply. The extra search paths aren't "clever magic", just an extra place to look for modules. It doesn't have to make anything more complicated. Finding wrong modules shouldn't happen, at least not in the example you provided. Especially when -i paths have priority over the other paths. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10643#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler