Debian Codegraph @

apps/derive/elpi/derive_hook.elpi

raw
1 /* Entry point for derive extensions */
2 /* license: GNU Lesser General Public License Version 2.1 or later */
3 /* ------------------------------------------------------------------------- */
4
5 pred derivation i:gref, i:string, o:bool, o:derive.
6 pred export i:modpath.
7 pred dep1 o:string, o:string.
8 kind derive type.
9 type derive string -> (func -> list (pred)) -> prop -> derive.
10
11 % if a derivation fails it should end by calling stop, instead of coq.error,
12 % so that derive can make the failure non fatal