ReasonML

1 program Added 2026-02-26T00:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Reason
Provenance: commit b36eb9f229 · authored 2026-02-26T15:41:18+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

8 sources · pl_id: pl/reason
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q63565848

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: functional · imperative · modular · object-oriented
Designed byJordan Walke
First appeared2016
Influenced byOCaml · JavaScript
LicenseMIT
Homepagehttps://reasonml.github.io/

Extensions claimed by this language

6 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.relinguistprimary545.7K files
.repygmentsprimary545.7K files
.rewikidataprimary545.7K files
.reiwikidataprimary26.2K files
.reilinguistsecondary26.2K files
.reipygmentssecondary26.2K files

Related languages

Reason (0.69)ReactiveML (0.23)Reactive ML (0.20)Meson (0.19)Radon (0.19)

LLM-contributed programs

Fibonacci sequence

Provenance: commit b36eb9f229 · authored 2026-02-26T15:41:18+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.re · license: Public Domain · added: 2026-02-26T00:00:00Z
let rec fib = (n) =>
  switch (n) {
  | 0 => 0
  | 1 => 1
  | n => fib(n - 1) + fib(n - 2)
  };

let () =
  for (i in 0 to 10) {
    Printf.printf("fib(%d) = %d\n", i, fib(i))
  };

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.re/0.repredicates[{"kind": "any", "regexes": ["^\\s*module\\s+type\\s", "^\\s*(?:include|open)\\s+\\w+\\s*;\\s*$", "^\\s*let\\s+(?:module\\s\\w+\\s*=\\s*\\{|\\w+:\\s+.*=.*;\\s*$)"]}]

Contribute — propose a file extension

Tell us where to find evidence about ReasonML (mapped to pl/reason). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/ReasonML/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ReasonLIGO Rebeca →