Skip to content

Commit ae627bc

Browse files
committed
Bind notation allowing for type cast annotations of variables
1 parent e522326 commit ae627bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

theories/Structures/Monad.v

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Module MonadNotation.
6060
Notation "x <- c1 ;; c2" := (@bind _ _ _ _ c1 (fun x => c2))
6161
(at level 61, c1 at next level, right associativity) : monad_scope.
6262

63+
Notation "` x : t <- c1 ;; c2" := (@bind _ _ _ _ c1 (fun x : t => c2))
64+
(at level 61, t at next level, c1 at next level, x ident, right associativity) : monad_scope.
65+
6366
Notation "e1 ;; e2" := (_ <- e1%monad ;; e2%monad)%monad
6467
(at level 61, right associativity) : monad_scope.
6568

0 commit comments

Comments
 (0)