Cure v0.37.2 :: Docs Inside the BEAM, a Snappier REPL & Just `cure run`
by Aleksei Matiushkin
Sometimes a patch release is just a quiet bugfix. And sometimes a patch release is the moment when all the little things you touch twenty times a day suddenly click into place and make you smile.
v0.37.2 is that kind of release.
Over the last few releases we spent a lot of time in the deep end—universe polymorphism, kernel-checked tactics, well-founded recursion, 252 modules of Agda metatheory. All of that is wonderful, and it is the reason Cure exists. Yet the truth of any programming language is that you don't live inside a soundness proof all day; you live in the docs, the REPL, and the command line. In v0.37.2, all three just got a whole lot nicer to call home.
Every .beam Now Knows Its Own Story
Back in v0.29.0 we swore we would make Cure's documentation genuinely pleasant to read. We got a long way there, but there was still a quiet secret underneath: compiled Cure.Std.*.beam files were completely mute. Whenever the website, cure doc, or the REPL wanted to show you a docstring, it had to go hunting for the .cure source file on disk and re-lex it from scratch. Worse still, whole declaration kinds—like indexed ADTs (Option), interfaces (Std.Arithmetic), and structs—were slipping right past the extractor.
That era is over.
Starting in v0.37.2, Cure's compiler emits standard EEP-48 Docs chunks straight into every compiled .beam file. That means Cure now speaks the exact same documentation protocol as Erlang, Elixir, and Gleam. Ask the BEAM itself about Cure.Std.Option:
{:docs_v1, _anno, :cure, "text/markdown", %{"en" => module_doc}, _meta, entries} =
Code.fetch_docs(Cure.Std.Option)
No .cure files on disk, no re-parsing, no guesswork—the documentation travels right alongside the bytecode.
Welcome to the ExDoc-Powered Standard Library
Because Cure now emits real EEP-48 chunks, we could plug Cure directly into ExDoc via Cure.Doc.ExDoc.Language—complete with Makeup.Lexers.CureLexer syntax highlighting, cross-reference autolinking, Makeup-highlighted .specs blocks (including ADT constructors!), and Cure's own warm orange theme in both light and dark modes.
Try it yourself locally:
mix docs.stdlib
Or better yet, just visit cure-lang.org/stdlib. It now leads straight to the brand-new, searchable, ExDoc-powered standard library reference, with all 84 Cure.Std.* modules organized into 12 curated sidebar groups.
From 53 Allowlisted Modules to Zero
Good tooling can render docs beautifully, but it cannot write them for you. When we wired a docstring coverage gate into mix cure.check.docs, the first measurement was humbling: 53 modules in .cure-doc-allowlist, 565 undocumented public functions, and 47 modules without ## Examples.
We made .cure-doc-allowlist a ratchet—it could only shrink, and stale entries failed the build. And then we went through every single module.
Today, .cure-doc-allowlist is empty. Zero modules remaining. All 73 lib/std/*.cure modules and all 11 lib/std_deps/regex/*.cure modules—100% of the standard library—now ship with module prose, runnable ## Examples, and per-function documentation, checked on every build. That felt really good to land.
A REPL That Answers Before You Blink
If you have ever opened cure repl just to check a quick expression or call a function you just wrote, you know the slight pause while the REPL synthesizes a temporary Repl.M<N> wrapper module and sends it through the full compiler pipeline.
In v0.37.2, the REPL gets a fast path (Cure.REPL.DirectEval). Primitive literals, literal lists and tuples, and direct calls to already-loaded Cure BEAM modules, active session exports, and imported modules now evaluate directly—no temporary wrapper module, no unnecessary ceremony:
cure(1)> Std.List.length([1, 2, 3])
3
cure(2)> Day1.solve()
42
Anything that needs type checking, elaboration, operators, let bindings, pattern matching, or rich diagnostics still goes seamlessly through the full compiler pipeline, so you get the speed where it's safe and the full dependent type checker everywhere else.
Even better: launch cure repl inside a Cure.toml project and it now loads your project's modules automatically, wires them into tab completion alongside Std.*, and lets :doc find your own modules right away. Open the REPL, hit Tab, call your code—it's already there waiting for you.
Just Type cure run
Big shout-out to @Beehtrix for PR #92! You can now declare your project's entry point right in Cure.toml:
[entry]
file = "lib/main.cure"
or by module name:
[entry]
module = "Main"
And then simply run:
cure run
Passing an explicit cure run path/to/file.cure still wins whenever you want to run something else, and pointing [entry] at both a file and a module (or at a stdlib module) gives you a crisp, helpful error. It is a small quality-of-life touch, and it immediately makes every Cure project feel twice as welcoming.
Try It Out
Grab v0.37.2, open the new ExDoc standard library, fire up cure repl in a project, and enjoy a bare cure run.
For the complete, line-by-line technical inventory (including the printer, extractor, prelude cache, and Dialyzer fixes that rode along), see CHANGELOG.md.
Happy hacking!