Skip to content

Commit 3ce4007

Browse files
committed
Display the new ' _ <- _ ;; _ notation only with nontrivial patterns
1 parent 548c861 commit 3ce4007

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

theories/Structures/Monad.v

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ Module MonadNotation.
6767
Notation "e1 ;; e2" := (_ <- e1%monad ;; e2%monad)%monad
6868
(at level 100, right associativity) : monad_scope.
6969

70-
Notation "' pat <- c1 ;; c2" := (@pbind _ _ _ _ _ c1 (fun pat => c2))
70+
Notation "' pat <- c1 ;; c2" :=
71+
(@pbind _ _ _ _ _ c1 (fun x => match x with pat => c2 end))
7172
(at level 100, pat pattern, c1 at next level, right associativity) : monad_scope.
7273

7374
End MonadNotation.

0 commit comments

Comments
 (0)