From 6da011a8677676462b24940a6171fb22615c3fbb Mon Sep 17 00:00:00 2001 From: letouzey Date: Thu, 24 Oct 2013 21:29:41 +0000 Subject: More monomorphic List.mem + List.assoc + ... To reduce the amount of syntactic noise, we now provide a few inner modules Int.List, Id.List, String.List, Sorts.List which contain some monomorphic (or semi-monomorphic) functions such as mem, assoc, ... NB: for Int.List.mem and co we reuse List.memq and so on. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16936 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/library.ml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'library/library.ml') diff --git a/library/library.ml b/library/library.ml index 09968c5ae..d2d67f484 100644 --- a/library/library.ml +++ b/library/library.ml @@ -234,9 +234,7 @@ let locate_qualified_library warn qid = let name = Id.to_string base ^ ".vo" in let lpath, file = System.where_in_path ~warn (List.map fst loadpath) name in - let dir = - add_dirpath_suffix (List.assoc_f String.equal lpath loadpath) base - in + let dir = add_dirpath_suffix (String.List.assoc lpath loadpath) base in (* Look if loaded *) if library_is_loaded dir then (LibLoaded, dir, library_full_filename dir) (* Otherwise, look for it in the file system *) -- cgit v1.2.3