Debian Codegraph @

apps/tc/tests/register/f3.v

raw
1 From elpi.apps.tc.tests.register Require Import f2.
2
3 (*
4 Note that in f2, TC.Compiler has been deactivated,
5 therefore I3 should not be added
6 *)
7
8 Instance I3 : A 3. Qed.
9
10 Goal A 3. Fail apply _. Abort.
11
12 Elpi Command custom_observer.
13 Elpi Accumulate lp:{{
14 main L :-
15 coq.say "Received the following event" L.
16 }}.
17
18 Elpi TC Activate Observer TC.Compiler.
19 Elpi Register TC Compiler custom_observer.
20 Elpi TC Activate Observer custom_observer.
21
22 (* Here we have two active event listener for the instance creation:
23 custom observer which simply prints the received event and
24 TC.Compiler that adds I4 to the db
25 *)
26 Instance I4 : A 4. Qed.
27
28 Goal A 4. apply _. Qed.