reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.14k stars 428 forks source link

Empty Functor adds unit on declaration and empty module on instantiation #2682

Closed davesnx closed 2 months ago

davesnx commented 1 year ago
module Lola = () => {
  let a = 33;
};

module L = Lola();

Formats

module Lola = (()) => {
  let a = 33;
};

module L =
  Lola({});
anmonteiro commented 2 months ago

this was fixed by #2683