aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/genarg.ml
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-01-17 01:46:02 +0100
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-01-17 01:49:24 +0100
commit88a16f49efd315aa1413da67f6d321a5fe269772 (patch)
tree9ed3e05a39e0e16f686aed58386b6a9912e5571a /lib/genarg.ml
parent15747cc2aaaeeb5d59ec90cda940c1dc6de01a6a (diff)
Simplification and type-safety of Pcoq thanks to GADTs in Genarg.
Diffstat (limited to 'lib/genarg.ml')
-rw-r--r--lib/genarg.ml10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/genarg.ml b/lib/genarg.ml
index 030797da9..6c10dee2a 100644
--- a/lib/genarg.ml
+++ b/lib/genarg.ml
@@ -194,16 +194,6 @@ type 'a raw_abstract_argument_type = ('a,rlevel) abstract_argument_type
type 'a glob_abstract_argument_type = ('a,glevel) abstract_argument_type
type 'a typed_abstract_argument_type = ('a,tlevel) abstract_argument_type
-let arg_list : type l. (_, l) abstract_argument_type -> (_, l) abstract_argument_type = function
-| Rawwit t -> Rawwit (ListArg t)
-| Glbwit t -> Glbwit (ListArg t)
-| Topwit t -> Topwit (ListArg t)
-
-let arg_opt : type l. (_, l) abstract_argument_type -> (_, l) abstract_argument_type = function
-| Rawwit t -> Rawwit (OptArg t)
-| Glbwit t -> Glbwit (OptArg t)
-| Topwit t -> Topwit (OptArg t)
-
type ('a, 'b, 'c, 'l) cast =
| Rcast : 'a -> ('a, 'b, 'c, rlevel) cast
| Gcast : 'b -> ('a, 'b, 'c, glevel) cast