#1025: -ddump-minimal-imports works wrongly
---------------------------+------------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.6.1
Component: Compiler | Version: 6.6
Severity: minor | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Multiple
Os: Multiple |
---------------------------+------------------------------------------------
Comment (by [EMAIL PROTECTED]):
get and install shellac
{{{http://www.eecs.tufts.edu/~rdocki01/projects/shellac-0.5-source.tar.gz}}}.
Compile the attached module:
{{{
[EMAIL PROTECTED]:~/haskell/examples> ghc --make -no-recomp -ddump-minimal-
imports B.hs
[1 of 1] Compiling B ( B.hs, B.o )
B.hs:1:0:
Failed to load interface for `System.Console.Shell.Commands':
it is hidden (in package Shellac-0.5)
}}}
The cause is the use of the data constructor {{{File}}}.
Without {{{-fforce-recomp}}} (or {{{-no-recomp}}}) the module is not
recompiled if it was successfully compiled before without {{{-ddump-
minimal-imports}}}
{{{B.hs}}}
{{{
module B where
import System.Console.Shell
a :: File
a = File "bla"
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1025>
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