Repository activity
40458 results across all weeks
manual: add syntax for partial labeled tuple patterns
As noticed in https://github.com/ocaml/ocaml/issues/15200#issuecomment-6424614476.
Simmo Saan (@sim642)manual: fix syntax for local opens
Not sure how pedantically the grammar in the manual is supposed to match the actual grammar, but here's a small problem I noticed in the manual. The presented grammar doesn't allow patterns like List.[1; 2; 3] because pattern ';' pattern is not itself a pattern (unlike with expressions).
Simmo Saan (@sim642)non-exhaustive integer match crashes instead of raising Match_failure
Alperen Keleş (@alpaylan)ocamldep exits 0 with no output when a source file does not exist
ocamldep prints nothing and exits 0 when a source file given on the command line does not exist. An unreadable file exits 2.
Thomas Gazagnaire (@samoht)ocamltest: Allow shell scripts to modify variables declared by the test
The script action of ocamltest allows the shell script to modify variables in ocamltest’s environment by writing lines of a certain form to their response file, like myvar="value" for instance. However, up to now this was limited to built-in ocamltest variables, which ocamltest stores in a separate environment. This extends the feature to variables declare…
Olivier Nicole (@OlivierNicole)pattern-matching: fix 15171 (obscure compile-time assert failure on redundant guarded or-patterns)
This is a proposed fix for #15171 reported by @smuenzel. Most of the commits involve fixing some aspects of the -dmatchcomp output (look at the commit messages to see before/after examples), and then a few-lines refactoring and a one-line fix.
Gabriel Scherer (@gasche)select_win32.c: fix wait for writable socket when passing mixed file descrs
The Win32 emulation used when Unix.select receives a mixture of sockets and non-sockets uses WSAEventSelect to wait for events on sockets. The "write" notification in this function (FD_WRITE) is edge-triggered, not level-triggered, as explained in the documentation https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsaeventselect:
Nicolás Ojeda Bär (@nojb)toplevel "Fatal error: n unbound at toplevel" on a redundant match case whose or-pattern binds a variable
Alperen Keleş (@alpaylan)typing/: add Btype.TypeMap.find_opt
This is a very minor PR (two-line changes).
Gabriel Scherer (@gasche){Sys,Unix}.rename: on Windows, allow renaming onto read-only file
According to POSIX, there is no issue renaming a file onto another file which is read-only. However, doing that on Windows currently fails.
Nicolás Ojeda Bär (@nojb)Inferred interface contains hidden definitions
I have this in a .ml file:
Simmo Saan (@sim642)New ocamllsp/completePrefixAtPos request
New ocamllsp/completePrefixAtPos custom request.
Sean Whitton (@spwhitton)Topiary formatter
I had just tried to follow the patterns of ocp-indent. I have been running this a few day okay at this point. One thing I don’t know about tho is the range call since Topiary doesn’t support formatting a range so it must reformat the whole document.
toastalflake.lock: Update
Automated changes by the update-flake-lock GitHub Action.
github-actionsAdd Zulip to the header and footer social links
Summary
Cuihtlauac Alvarado (@cuihtlauac)Add a search in the docs feature
To allow searching for content from the documentation
Thibaut Mattio (@tmattio)Add code and documentation search to the global search results
https://sherlocode.com/ and https://doc.sherlocode.com/ have proven to be extremely helpful.
Thibaut Mattio (@tmattio)Add search to OCaml Planet blog posts
The OCaml Planet page (/ocaml-planet) lists aggregated blog posts but offers no way to search or filter them. With a growing archive, finding a past post means paging through the listing or relying on an external search engine.
Cuihtlauac Alvarado (@cuihtlauac)Attribution page: per-document "Authors and history", precomputed from git into the build
Give every documentation page an "Authors and history" link to a per-document attribution record — contributors by role, derived sources, and any AI-assisted sections — shown as one fact among authoring information rather than a warning banner. This is a self-contained spec intended to be implementable from a fresh session.
Cuihtlauac Alvarado (@cuihtlauac)Case-insensitive matching with Unicode case folding
Fixes #3912. Stacked on #3915, which is stacked on #3913 and #3911. It targets utf-8-display and will retarget as the PRs below it merge.
Cuihtlauac Alvarado (@cuihtlauac)