[GHC] #10643: GHC cannot import submodules when run from subfolder

GHC ghc-devs at haskell.org
Fri Jul 17 15:59:32 UTC 2015


#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 svenpanne):

 Simply saying "nonsense" is... well, nonsense. :-) As I already said
 several times: For very simple programs you might get away without
 specifying non-exposed packages, GHC extensions, preprocessor defines etc.
 on the commandline, but in general you simply don't, just take a look at a
 few packages on Hackage. So any tool not looking at a .cabal file (or
 somewhere else where similar information is stored, wherever that may be)
 is fundamentally flawed and restricted to toy problems.

 And there's still the problem that in general tools which go up in the
 directory hierarchy have problems when symbolic links are involved: `cd
 Yes; cd ..` is not always a no-op.

 I still fail to see what's wrong with using runghc/ghc/ghci from the top
 directory of your project or why that's considered to be so complicated...

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10643#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list