#1027: GHC-as-a-library does too much recompilation when given recursive module
imports
-------------------------+--------------------------------------------------
Reporter: igloo | Owner: simonmar
Type: bug | Status: closed
Priority: normal | Milestone: 6.8
Component: Compiler | Version: 6.6
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
-------------------------+--------------------------------------------------
Changes (by simonmar):
* resolution: => fixed
* status: new => closed
Comment:
Fixed. It looks like I fixed this as part of the changes to support
compiling to object code in GHCi; the cause of the problem was that we
weren't even attempting to avoid unnecessary recompilations to object code
because --make doesn't recompile.
The trace is now:
{{{
~/scratch/ghcapi > ./foo
[1 of 4] Compiling C[boot] ( C.hs-boot, nothing )
[2 of 4] Compiling B ( B.hs, B.o )
B.hs:6:0:
Warning: Definition but no type signature for `b'
Inferred type: b :: Char
[3 of 4] Compiling A ( A.hs, A.o )
A.hs:6:0:
Warning: Definition but no type signature for `a'
Inferred type: a :: Char
[4 of 4] Compiling C ( C.hs, C.o )
C.hs:6:0:
Warning: Definition but no type signature for `c'
Inferred type: c :: Char
Succeeded!
Succeeded!
Succeeded!
Succeeded!
~/scratch/ghcapi > ./foo
[1 of 4] Compiling C[boot] ( C.hs-boot, nothing )
Succeeded!
Succeeded!
Succeeded!
Succeeded!
}}}
The example code has to be tweaked slightly: the BatchCompile argument to
newSession is no longer required.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1027>
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