#3007: GHC seems to ignore the package name of modules imported with {#- SOURCE
#-}
--------------------+-------------------------------------------------------
Reporter: jeltsch | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: Linux | Architecture: x86_64 (amd64)
--------------------+-------------------------------------------------------
I have attached an archive with source bundles of two small Cabal packages
A and B. Please build and register package A by executing these commands
in directory A:
{{{
runghc Setup.lhs configure --user
runghc Setup.lhs build
runghc Setup.lhs register --inplace
}}}
Now try to build B by executing these commands in directory B:
{{{
runghc Setup.lhs configure --user
runghc Setup.lhs build
}}}
You will probably get the following error message:
{{{
B.hs:6:9:
Bad interface file: .../Bug/A/dist/build/Internal.hi-boot
.../Bug/A/dist/build/Internal.hi-boot:
openBinaryFile: does not exist (No such file or directory)
In the type `A'
In the type signature for `a':
a :: A
}}}
The type {{{A}}} is indirectly imported from module {{{Internal}}} of
package A. GHC seems to think that this module was imported with a {{{{-#
SOURCE #-}}}} pragma and therefore looks for a .hi-boot file instead of a
.hi file. However, it’s the module {{{Internal}}} ''of package B'' that
was imported with a {{{{-# SOURCE #-}}}} pragma.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3007>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs