aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/ide_intf.ml
diff options
context:
space:
mode:
authorGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-11-30 15:50:01 +0000
committerGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-11-30 15:50:01 +0000
commit4f254ec43f306d289c17286e86a9aface2998224 (patch)
tree6e79838c6cfbdaa2cc0c84e2fd31eb359d3d53b4 /toplevel/ide_intf.ml
parentca8d3f6ff0ed096301651e97cc42e8a3cb039d52 (diff)
More type safety in query GADT (again).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14753 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/ide_intf.ml')
-rw-r--r--toplevel/ide_intf.ml18
1 files changed, 9 insertions, 9 deletions
diff --git a/toplevel/ide_intf.ml b/toplevel/ide_intf.ml
index 1dade4085..0feceb537 100644
--- a/toplevel/ide_intf.ml
+++ b/toplevel/ide_intf.ml
@@ -43,15 +43,15 @@ let mkcases s : string list list call = MkCases s
let abstract_eval_call handler c =
try
let res = match c with
- | Interp (r,b,s) -> Obj.magic (handler.interp (r,b,s))
- | Rewind i -> Obj.magic (handler.rewind i)
- | Goal -> Obj.magic (handler.goals ())
- | Hints -> Obj.magic (handler.hints ())
- | Status -> Obj.magic (handler.status ())
- | GetOptions -> Obj.magic (handler.get_options ())
- | SetOptions opts -> Obj.magic (handler.set_options opts)
- | InLoadPath s -> Obj.magic (handler.inloadpath s)
- | MkCases s -> Obj.magic (handler.mkcases s)
+ | Interp (r,b,s) -> Obj.magic (handler.interp (r,b,s) : string)
+ | Rewind i -> Obj.magic (handler.rewind i : int)
+ | Goal -> Obj.magic (handler.goals () : goals)
+ | Hints -> Obj.magic (handler.hints () : (hint list * hint) option)
+ | Status -> Obj.magic (handler.status () : status)
+ | GetOptions -> Obj.magic (handler.get_options () : (option_name * option_state) list)
+ | SetOptions opts -> Obj.magic (handler.set_options opts : unit)
+ | InLoadPath s -> Obj.magic (handler.inloadpath s : bool)
+ | MkCases s -> Obj.magic (handler.mkcases s : string list list)
in Good res
with e ->
let (l, str) = handler.handle_exn e in