Skip to content

Commit

Permalink
actions should be constrained by Applicative
Browse files Browse the repository at this point in the history
Was constrained by Monad
  • Loading branch information
louthy committed Aug 3, 2024
1 parent f2cfdfd commit af5561c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LanguageExt.Core/Prelude/Applicatives/Prelude.Applicatives.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static K<F, A> actions<F, A>(params K<F, A>[] ms)
/// Runs each applicative and returns the result of the last one
/// </remarks>
public static K<F, A> actions<F, A>(IEnumerable<K<F, A>> ms)
where F : Monad<F> =>
where F : Applicative<F> =>
F.Actions(ms);

/// <summary>
Expand All @@ -30,6 +30,6 @@ public static K<F, A> actions<F, A>(IEnumerable<K<F, A>> ms)
/// Runs each applicative and returns the result of the last one
/// </remarks>
public static K<F, A> actions<F, A>(Seq<K<F, A>> ms)
where F : Monad<F> =>
where F : Applicative<F> =>
F.Actions(ms);
}

0 comments on commit af5561c

Please sign in to comment.