summaryrefslogtreecommitdiff
path: root/testsuite/tests/plugins/T15858.script
blob: 77a1b5355729348cc2297c31bb49b91abdb458bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
:set -fobject-code
-- ^ Without this no recompilation happens at all in ghci, but that's a bug for
-- another ticket.

:l plugin-recomp-test.hs

-- switching to an impure plugin triggers recomp.
:! echo ==ImpurePlugin.0 >&2
:set -fclear-plugins -fplugin ImpurePlugin
:l plugin-recomp-test.hs

-- ..forever, this also triggers recomp.
:! echo ==ImpurePlugin.1 >&2
:l plugin-recomp-test.hs

-- switching from impure to pure plugin triggers recomp.
:! echo ==PurePlugin.0 >&2
:set -fclear-plugins -fplugin PurePlugin
:l plugin-recomp-test.hs

-- switching to a fingerprint plugin triggers recomp.
:! echo ==FingerprintPlugin.0 >&2
:set -fclear-plugins -fplugin FingerprintPlugin
:l plugin-recomp-test.hs

-- same fingerprint plugin doesn't trigger recomp.
:! echo ==FingerprintPlugin.1 >&2
:l plugin-recomp-test.hs

-- switching from fingerprint to pure plugin triggers recomp.
:! echo ==PurePlugin.1 >&2
:set -fclear-plugins -fplugin PurePlugin
:l plugin-recomp-test.hs