summaryrefslogtreecommitdiff
path: root/src/mod_db.sig
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-05-02 08:56:19 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-05-02 08:56:19 -0400
commit1fd7e4392db0bace167853850188c464b00a8126 (patch)
tree62439e548ac25411e953783beb116b5937e87fae /src/mod_db.sig
parentb314c01095c5cd4617f71f706e43530a57ffb65b (diff)
Don't modify the module cache after elaboration failures
Diffstat (limited to 'src/mod_db.sig')
-rw-r--r--src/mod_db.sig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mod_db.sig b/src/mod_db.sig
index 2b98ae6f..8f78f2c2 100644
--- a/src/mod_db.sig
+++ b/src/mod_db.sig
@@ -35,4 +35,8 @@ signature MOD_DB = sig
* We might invalidate other declarations that depend on this one, if the timestamp has changed. *)
val lookup : Source.decl -> Elab.decl option
+
+ (* Allow undoing to snapshots after failed compilations. *)
+ val snapshot : unit -> unit
+ val revert : unit -> unit
end