Skip to content

Commit c986741

Browse files
committed
added monadic composition operator >=>
1 parent a9c1389 commit c986741

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
@@ -61,6 +61,9 @@ Module MonadNotation.
6161
Notation "c >>= f" := (@pbind _ _ _ _ _ c f) (at level 50, left associativity) : monad_scope.
6262
Notation "f =<< c" := (@pbind _ _ _ _ _ c f) (at level 51, right associativity) : monad_scope.
6363

64+
(* Left-to-right composition of Kleisli arrows. *)
65+
Notation "f >=> g" := (fun x => @pbind _ _ _ _ _ (f x) g) (at level 50, left associativity) : monad_scope.
66+
6467
Notation "x <- c1 ;; c2" := (@pbind _ _ _ _ _ c1 (fun x => c2))
6568
(at level 100, c1 at next level, right associativity) : monad_scope.
6669

0 commit comments

Comments
 (0)