python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
value level module packing and functors in OCaml
I wonder why one example fails and not the other.
(* this fails *)
(* (l fails to type check)
This expression has type 'a but an expression was expected of type
(module M.TFixU)
Th...
nicolas
Votes: 0
Answers: 1
Building "hello world" with ocaml dune
Following the tutorial at https://dune.readthedocs.io/en/stable/quick-start.html, I created a file hello_world.ml containing
print_endline "Hello, world!"
and a file dune containing
(execut...
user0
Votes: 0
Answers: 1
Is eta-expansion foolproof in OCaml?
Is it best to always eta-expand as a fool-proof rule of thumb in OCaml ?
type 'x recordx = { x : int }
type 'y recordy = { y : int }
let rec ok : type n a. n recordx -> a recordy -> int ...
nicolas
Votes: 0
Answers: 1
higher order fix point in OCaml
What are all the possible implementations the following second-order example in OCaml ?
Here is some very simple Haskell code exhibiting a fold, aka the universal property of the initial algebra FixH....
nicolas
Votes: 0
Answers: 0