Skip to content

Commit c945c79

Browse files
authored
Update snippet04.ml to match Haskell snippet
This is the same code found in section 8.5 in the KleisliComposition module in order to match the Haskell code to which it is associated
1 parent 951a197 commit c945c79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
let pure x = x, ""
1+
let ( >=> ) = fun m1 m2 ->
2+
let y, s1 = m1 x in
3+
let z, s2 = m2 x in
4+
z, StringLabels.concat +sep:"" [ s1; s2 ]

0 commit comments

Comments
 (0)