Skip to content

Commit 04ab67b

Browse files
committed
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 1c9c19d commit 04ab67b

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)