Retypecheck both before and after finishing hs-boot loops in --make.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Fri, 13 May 2016 07:10:47 +0000 (00:10 -0700)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Sun, 21 Aug 2016 07:53:21 +0000 (00:53 -0700)
commit8fd184887e7c240c7089367c6f737fa66cf409fc
tree98e1c3a290e2495bcfcc7ffd0339e98940607134
parent5a8fa2e662fce9ef03f0ec7891d7f81740e630bc
Retypecheck both before and after finishing hs-boot loops in --make.

Summary:
This makes ghc --make's retypecheck behavior more in line
with ghc -c, which is able to tie the knot as we are typechecking.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate

Reviewers: simonpj, austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2213

GHC Trac Issues: #12035
compiler/main/GhcMake.hs
compiler/main/HscMain.hs
testsuite/tests/typecheck/should_fail/T12035.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T12035.hs-boot [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T12035.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T12035a.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T