Reason

1 program Added 2025-10-22T10:09:35Z Model: anthropic/claude-3.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: ReasonML, Reason ML
Provenance: commit ca7daa2472 · authored 2025-10-22T12:09:35+02:00 · model anthropic/claude-3.5-sonnet

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

ReasonML (0.69)Reactive ML (0.27)ReactiveML (0.25)Reach (0.16)Refal (0.16)

LLM-contributed programs

Simple React Component in Reason

Provenance: commit ca7daa2472 · authored 2025-10-22T12:09:35+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.re · license: MIT · added: 2025-10-22T10:09:35Z
[@react.component]
let make = (~message) => {
  let (count, setCount) = React.useState(() => 0);

  <div>
    <div> {React.string(message)} </div>
    <div> {React.string("Count: " ++ string_of_int(count))} </div>
    <button onClick={_event => setCount(_ => count + 1)}>
      {React.string("Click me")}
    </button>
  </div>;
};

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 Reason (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/Reason/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Reaper ReasonLIGO →