Commit c3d1c7a
committed
Take CWD into account in preprocessor hs-boot hack
This commit fixes an oversight in runPreProcessorWithHsBootHack, which
did not correctly take into account the working directory. This could
lead to situations in which we failed to apply the hack.
Recall that this hack is for situations when one has both an hs-boot
file and a file in need of preprocessing, such as:
Foo.y
Foo.hs-boot
or
Bar.hsc
Bar.hs-boot
Failing to apply the hack essentially meant that GHC would not be able
to see the hs-boot file, which caused build failures.1 parent c125521 commit c3d1c7a
1 file changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
| 348 | + | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
364 | 368 | | |
365 | 369 | | |
366 | | - | |
367 | | - | |
| 370 | + | |
| 371 | + | |
368 | 372 | | |
369 | 373 | | |
370 | | - | |
371 | | - | |
372 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
373 | 379 | | |
374 | 380 | | |
375 | | - | |
376 | | - | |
377 | | - | |
| 381 | + | |
| 382 | + | |
378 | 383 | | |
379 | 384 | | |
380 | 385 | | |
| |||
0 commit comments