Commit 29e95de 1 parent a6214f9 commit 29e95de Copy full SHA for 29e95de
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -72,17 +72,17 @@ Module Unquote.
72
72
(* idk why this is needed... *)
73
73
#[local] Hint Extern 1 (Monad _) => refine TemplateMonad_Monad : typeclass_instances.
74
74
Definition tmQuoteSort@{U t u} : TemplateMonad@{t u} sort
75
- := p <- @tmQuote Prop (Type @{U} -> True);;
75
+ := bind@{t u} ( @tmQuote@{t u} Prop (Type @{U} -> True)) ( fun p =>
76
76
match p with
77
- | tProd _ (tSort s) _ => ret s
77
+ | tProd _ (tSort s) _ => ret@{t u} s
78
78
| _ => tmFail "Anomaly: tmQuote (Type -> True) should be (tProd _ (tSort _) _)!"%bs
79
- end .
79
+ end ) .
80
80
Definition tmQuoteUniverse@{U t u} : TemplateMonad@{t u} Universe.t
81
- := s <- @tmQuoteSort@{U t u};;
81
+ := bind@{t u} ( @tmQuoteSort@{U t u}) ( fun s =>
82
82
match s with
83
83
| sType u => ret u
84
84
| _ => tmFail "Sort does not carry a universe (is not Type )"%bs
85
- end .
85
+ end ) .
86
86
Definition tmQuoteLevel@{U t u} : TemplateMonad@{t u} Level.t
87
87
:= bind@{t u} tmQuoteUniverse@{U t u}
88
88
(fun u =>
You can’t perform that action at this time.
0 commit comments