aboutsummaryrefslogtreecommitdiff
path: root/lib/util.ml
diff options
context:
space:
mode:
authorherbelin2011-11-28 23:23:17 +0000
committerherbelin2011-11-28 23:23:17 +0000
commit68fe6e8f354f4317decc5c69e2658fd17b5a5e90 (patch)
treedd00bc22ae667c5e3fe9274b072f7bcca3f68543 /lib/util.ml
parentf0379a9f1e23ebebbb7af67aafa593938324939b (diff)
Finally used typing to decide whether an alias needs to be expanded or
not in pattern-matching compilation. Also extended to the Var case the preference given to using the term to match as alias rather than its expansion. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14737 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/util.ml')
-rw-r--r--lib/util.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.ml b/lib/util.ml
index f7be7b0d73..a199aacd23 100644
--- a/lib/util.ml
+++ b/lib/util.ml
@@ -51,6 +51,7 @@ exception Error_in_file of string * (bool * string * loc) * exn
let on_fst f (a,b) = (f a,b)
let on_snd f (a,b) = (a,f b)
+let map_pair f (a,b) = (f a,f b)
(* Mapping under pairs *)