Skip to content

Commit

Permalink
rename >>
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jul 31, 2024
1 parent f26278f commit 076ff28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Stdlib/Trait/Applicative.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type Applicative (f : Type -> Type) :=

open Applicative public;

syntax operator >> seq;
>> {f : Type -> Type} {{I : Applicative f}} {A B : Type} (fa : f A) (fb : f B) : f B :=
--- Sequences computations.
--- Note that this function will be renamed to >>> once IO becomses a polymorphic type and can be given an Applicative instance.
applicativeSeq {f : Type -> Type} {{I : Applicative f}} {A B : Type} (fa : f A) (fb : f B) : f B :=
ap (map λ {_ b := b} fa) fb;

0 comments on commit 076ff28

Please sign in to comment.