Re: [GHC] #2064: problems with duplicate modules
#2064: problems with duplicate modules -+-- Reporter: Frederik |Owner: Type: bug | Status: new Priority: normal|Milestone: 6.12 branch Component: Compiler | Version: 6.8.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Os: Unknown/Multiple Architecture: Unknown/Multiple | -+-- Changes (by igloo): * milestone: 6.10 branch = 6.12 branch -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2064#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2064: problems with duplicate modules
#2064: problems with duplicate modules --+- Reporter: Frederik | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.10 branch Component: Compiler |Version: 6.8.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Unknown Os: Unknown | --+- Changes (by igloo): * milestone: 6.8 branch = 6.10 branch -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2064#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2064: problems with duplicate modules
#2064: problems with duplicate modules --+- Reporter: Frederik | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.8 branch Component: Compiler |Version: 6.8.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Unknown Os: Unknown | --+- Comment (by duncan): Cabal = 1.3.4 is doing this check, however it's cheap and easy to add to ghc-pkg. I think we can assume that package registration files dropped into a `package.conf.d` directory are correct so we need only do it when we register (it'd be useful to have a `ghc-pkg check --virtual- root=tmp_image/` command to double check this however). As I understand it, the plan is to use a binary cache of the info in a `package.conf.d` directory and this is also a suitable point to check. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2064#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2064: problems with duplicate modules
#2064: problems with duplicate modules --+- Reporter: Frederik | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.8 branch Component: Compiler |Version: 6.8.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Unknown Os: Unknown | --+- Changes (by igloo): * difficulty: = Unknown * milestone: = 6.8 branch Comment: I'm not sure when, if at all, GHC should check for things like this, especially if we allow a `package.conf.d` directory, so calling ghc-pkg isn't needed to register packages. I think the options are (in order of increasing paranoia): * Assume Cabal has done the checking for us, and don't do it ourselves * Check in ghc-pkg when (if) the package is registered * Check in GHC itself when we read the `package.conf` -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2064#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #2064: problems with duplicate modules
#2064: problems with duplicate modules -+-- Reporter: Frederik | Owner: Type: bug | Status: new Priority: normal| Component: Compiler Version: 6.8.2 |Severity: normal Keywords:|Testcase: Architecture: Unknown | Os: Unknown -+-- Hello, I just noticed the following minor issue. I have a cabal file which isn't seen by cabal except for the configuration step and to install the package, which I do as: {{{ runhaskell Setup.hs -v register --gen-pkg-config=.package-config ghc-pkg update .package-config --user }}} If I duplicate a module in the Exposed-modules list then 1. cabal doesn't complain 2. ghc-pkg doesn't complain 3. ghci gives a very misleading message, e.g.: {{{ Could not find module `Vector.Sparse': it was found in multiple packages: vectro-0.2 vectro-0.2 }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2064 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2064: problems with duplicate modules
#2064: problems with duplicate modules -+-- Reporter: Frederik |Owner: Type: bug | Status: new Priority: normal|Milestone: Component: Compiler | Version: 6.8.2 Severity: normal| Resolution: Keywords:| Testcase: Architecture: Unknown | Os: Unknown -+-- Comment (by duncan): Noted in Cabal trac: http://hackage.haskell.org/trac/hackage/ticket/191#comment:8 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2064#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs