DocsPlaygroundBlogCommunityPackages
  • Playground
  • Blog
  • Community
  • Packages
  • X
  • Bluesky
  • GitHub
  • Forum
Language ManualAPISyntax LookupReact

Syntax Lookup

Enter some language construct you want to know more about.
This is the module keyword.

module is used to define a scoped block of code that may contain types, let bindings, nested modules, etc.

Example

ReScriptJS Output
module Point3D = {
  type point = (float, float, float)
  let make = (x, y, z) => (x, y, z)
}

let origin = Point3D.make(0.0, 0.0, 0.0)

References

  • Module

© 2025 The ReScript Project

About
  • Community
  • ReScript Association
Find us on