Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/1.4/code/ocaml/snippet03.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module type Kleisli = sig
type b
type c

val ( >=> ) : (a -> b writer) -> (b -> c writer) -> a -> c writer
val ( >=> ) : (a -> b writer) -> (b -> c writer) -> (a -> c writer)
end
2 changes: 1 addition & 1 deletion src/content/1.7/code/ocaml/snippet04.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ module type Maybe_Functor = sig
type a
type b

val fmap : (a -> b) -> a option -> b option
val fmap : (a -> b) -> (a option -> b option)
end
2 changes: 1 addition & 1 deletion src/content/1.7/code/ocaml/snippet21.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module type Reader_Fmap_Example = sig
val fmap : ('a -> 'b) -> ('r -> 'a) -> 'r -> 'b
val fmap : ('a -> 'b) -> ('r -> 'a) -> ('r -> 'b)
end
2 changes: 1 addition & 1 deletion src/content/1.8/code/ocaml/snippet17.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module KleisliComposition = struct
let ( >=> )
: ('a -> 'b writer) -> ('b -> 'c writer) -> 'a -> 'c writer
: ('a -> 'b writer) -> ('b -> 'c writer) -> ('a -> 'c writer)
=
fun m1 m2 x ->
let y, s1 = m1 x in
Expand Down
2 changes: 1 addition & 1 deletion src/content/3.4/code/ocaml/snippet04.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module type Monad = sig
type 'a m

val ( >=> ) : ('a -> 'b m) -> ('b -> 'c m) -> 'a -> 'c m
val ( >=> ) : ('a -> 'b m) -> ('b -> 'c m) -> ('a -> 'c m)
val return : 'a -> 'a m
end