Skip to content

Commit

Permalink
Rename zapp to app
Browse files Browse the repository at this point in the history
  • Loading branch information
gusty committed Jan 25, 2024
1 parent 50fb8a5 commit ef6bc42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docsrc/content/abstraction-zipapplicative.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ let arr2 = (+) <!> [|1;2;3|] <.> [|10;20;30|]

// Validations

let validated = zapp2 {
let validated = app2 {
let! x = async { return Ok 1 }
and! y = async { return Ok 2 }
and! z = async { return Error ["Error"] }
Expand Down
10 changes: 5 additions & 5 deletions src/FSharpPlus/Builders.fs
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,19 @@ module GenericBuilders =
/// Creates a strict monadic computation expression with side-effects (see http://fsprojects.github.io/FSharpPlus/computation-expressions.html for more information)
let monad'<'``monad<'t>``> = new MonadFxStrictBuilder<'``monad<'t>``> ()

/// Creates an applicative computation expression.
/// Creates a (sequential) applicative computation expression.
let applicative<'``Applicative<'T>``> = ApplicativeBuilder<'``Applicative<'T>``> ()

/// Creates an applicative computation expression which compose effects of two Applicatives.
/// Creates a (sequential) applicative computation expression which compose effects of two Applicatives.
let applicative2<'``Applicative1<Applicative2<'T>>``> = ApplicativeBuilder2<'``Applicative1<Applicative2<'T>>``> ()

/// Creates an applicative computation expression which compose effects of three Applicatives.
/// Creates a (sequential) applicative computation expression which compose effects of three Applicatives.
let applicative3<'``Applicative1<Applicative2<Applicative3<'T>>>``> = ApplicativeBuilder3<'``Applicative1<Applicative2<Applicative3<'T>>>``> ()

/// Creates a (non sequential) applicative computation expression.
let zapp<'``Applicative<'T>``> = ZipApplicativeBuilder<'``Applicative<'T>``> ()
let app<'``ZipApplicative<'T>``> = ZipApplicativeBuilder<'``ZipApplicative<'T>``> ()

/// Creates a (non sequential) applicative computation expression which compose effects of two Applicatives.
let zapp2<'``Applicative1<Applicative2<'T>>``> = ZipApplicativeBuilder2<'``Applicative1<Applicative2<'T>>``> ()
let app2<'``ZipApplicative1<ZipApplicative2<'T>>``> = ZipApplicativeBuilder2<'``ZipApplicative1<ZipApplicative2<'T>>``> ()

#endif

0 comments on commit ef6bc42

Please sign in to comment.