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/reasonWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: functional · imperative · modular · object-oriented |
|---|---|
| Designed by | Jordan Walke |
| First appeared | 2016 |
| Influenced by | OCaml · JavaScript |
| License | MIT |
| Homepage | https://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.| Extension | Source | Strength | SWH |
|---|---|---|---|
.re | linguist | primary | 545.7K files |
.re | pygments | primary | 545.7K files |
.re | wikidata | primary | 545.7K files |
.rei | wikidata | primary | 26.2K files |
.rei | linguist | secondary | 26.2K files |
.rei | pygments | secondary | 26.2K files |
Related languages
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
[@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.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.re/0 | .re | predicates | [{"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*$)"]}] |