Skip to content

Commit 903c531

Browse files
committed
project file update
1 parent 5255494 commit 903c531

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.idea/rescript-relude.iml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Relude_RWST.res

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ module WithMonad = (M: MONAD) => {
2727
result, and the writer log.
2828
")
2929
let evalRWST: 'a 'r 's 'w. ('r, 's, t<'a, 'r, 's, 'w>) => M.t<('a, 'w)> = (r, s, RWST(f)) =>
30-
f(r, s)->(M.map((RWSResult(a, _s, w)) => (a, w), _))
30+
f(r, s)->M.map((RWSResult(a, _s, w)) => (a, w), _)
3131

3232
@ocaml.doc("
3333
Same as runRWST, but discards the final result value, only returning the final
3434
state, and the writer log.
3535
")
3636
let execRWST: 'a 'r 's 'w. ('r, 's, t<'a, 'r, 's, 'w>) => M.t<('s, 'w)> = (r, s, RWST(f)) =>
37-
f(r, s)->(M.map((RWSResult(_a, s, w)) => (s, w), _))
37+
f(r, s)->M.map((RWSResult(_a, s, w)) => (s, w), _)
3838

3939
@ocaml.doc("
4040
Change the result type and writer log type. Note: this should normally allow
@@ -63,7 +63,7 @@ module WithMonad = (M: MONAD) => {
6363
RWST(f),
6464
) => RWST(
6565
(r, s) =>
66-
f(r, s)->(M.map((RWSResult.RWSResult(a, s, w)) => RWSResult.RWSResult(aToB(a), s, w), _)),
66+
f(r, s)->M.map((RWSResult.RWSResult(a, s, w)) => RWSResult.RWSResult(aToB(a), s, w), _),
6767
)
6868

6969
let applyWithAppendLog: 'a 'b 'r 's 'w. (
@@ -95,7 +95,7 @@ module WithMonad = (M: MONAD) => {
9595
(r1, s1) =>
9696
runA(r1, s1)->M.flat_map((RWSResult(a, s2, w1)) => {
9797
let RWST(runB) = aToRWSTB(a)
98-
runB(r1, s2)->(M.map((RWSResult(b, s3, w2)) => RWSResult(b, s3, appendLog(w1, w2)), _))
98+
runB(r1, s2)->M.map((RWSResult(b, s3, w2)) => RWSResult(b, s3, appendLog(w1, w2)), _)
9999
}),
100100
)
101101

0 commit comments

Comments
 (0)