-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix formatting in OCaml snippets (#279)
- Loading branch information
Showing
5 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
(** Deriving a functor in OCaml is not available as a language extension. You could try experimental library like ocsigen to derive functors.*) | ||
(** Deriving a functor in OCaml is not available as a language | ||
extension. You could try experimental library like ocsigen | ||
to derive functors.*) | ||
type 'a tree = | ||
| Leaf of 'a | ||
| Node of 'a tree * 'a tree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
(* Gen.t is used to represent infinite data structures like haskell's lazy list *) | ||
(* Gen.t is used to represent infinite data structures like haskell's | ||
lazy list *) | ||
val unfold : ('b -> ('a * 'b) option) -> 'b -> 'a Gen.t |