Fix incorrect retypecheck loop in -j (#14075)
authorEdward Z. Yang <>
Tue, 22 Aug 2017 12:44:25 +0000 (08:44 -0400)
committerBen Gamari <>
Tue, 22 Aug 2017 15:09:05 +0000 (11:09 -0400)
Fix incorrect retypecheck loop in -j (#14075)

The parallel codepath was incorrectly retypechecking the
hs-boot ModIface prior to typechecking the hs file,
which was inconsistent with the non-parallel case.  The
non-parallel case gets it right: you don't want to retypecheck
the hs-boot file itself (forwarding its declarations to hs)
because you need it to be consistently knot-tied with itself
when you compare the interfaces.

Signed-off-by: Edward Z. Yang <>
Test Plan: validate

Reviewers: bgamari, simonpj, austin

Reviewed By: bgamari

Subscribers: duog, rwbarton, thomie

GHC Trac Issues: #14075

Differential Revision:
testsuite/tests/driver/T14075/F.hs [new file with mode: 0644]
testsuite/tests/driver/T14075/F.hs-boot [new file with mode: 0644]
testsuite/tests/driver/T14075/Makefile [new file with mode: 0644]
testsuite/tests/driver/T14075/O.hs [new file with mode: 0644]
testsuite/tests/driver/T14075/T14075.stderr [new file with mode: 0644]
testsuite/tests/driver/T14075/T14075.stdout [new file with mode: 0644]
testsuite/tests/driver/T14075/V.hs [new file with mode: 0644]
testsuite/tests/driver/T14075/V.hs-boot [new file with mode: 0644]
testsuite/tests/driver/T14075/all.T [new file with mode: 0644]