diff options
author | Matthew Pickering <matthew.pickering@tweag.io> | 2018-05-27 11:57:27 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-05-30 18:06:33 -0400 |
commit | 1d1e2b77fdc2babdf4fff72b9120c6831e7b422f (patch) | |
tree | 088af3cf628ef34181ec90434d55d5f1b05ead41 /testsuite/tests/plugins/plugin-recomp-impure.stdout | |
parent | e0b44e2eccd4053852b6c4c3de75a714301ec080 (diff) | |
download | haskell-1d1e2b77fdc2babdf4fff72b9120c6831e7b422f.tar.gz |
Implement "An API for deciding whether plugins should cause recompilation"
This patch implements the API proposed as pull request #108 for plugin
authors to influence the recompilation checker.
It adds a new field to a plugin which computes a `FingerPrint`. This is
recorded in interface files and if it changes then we recompile the
module. There are also helper functions such as `purePlugin` and
`impurePlugin` for constructing plugins which have simple recompilation
semantics but in general, an author can compute a hash as they wish.
Fixes #12567 and #7414
https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/002
2-plugin-recompilation.rst
Reviewers: bgamari, ggreif
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
GHC Trac Issues: #7414, #12567
Differential Revision: https://phabricator.haskell.org/D4366
Diffstat (limited to 'testsuite/tests/plugins/plugin-recomp-impure.stdout')
-rw-r--r-- | testsuite/tests/plugins/plugin-recomp-impure.stdout | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/plugins/plugin-recomp-impure.stdout b/testsuite/tests/plugins/plugin-recomp-impure.stdout new file mode 100644 index 0000000000..d282cfea8f --- /dev/null +++ b/testsuite/tests/plugins/plugin-recomp-impure.stdout @@ -0,0 +1,4 @@ +[1 of 1] Compiling Main ( plugin-recomp-test.hs, plugin-recomp-test.o ) +Linking plugin-recomp-test ... +[1 of 1] Compiling Main ( plugin-recomp-test.hs, plugin-recomp-test.o ) [Plugin forced recompilation] +Linking plugin-recomp-test ... |