Skip to content

Commit 14e7d88

Browse files
authored
Merge pull request #46 from Lysxia/master
Display the new ' _ <- _ ;; _ notation only with nontrivial patterns
2 parents e7a00b3 + 3ce4007 commit 14e7d88

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
@@ -77,7 +77,8 @@ Module MonadNotation.
7777
Notation "e1 ;; e2" := (_ <- e1%monad ;; e2%monad)%monad
7878
(at level 100, right associativity) : monad_scope.
7979

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

8384
End MonadNotation.

0 commit comments

Comments
 (0)