docs: "Using Wolverine with F#" tutorial (GH-2969)#2988
Merged
Conversation
A new tutorial (docs/tutorials/fsharp.md, wired into the Tutorials sidebar) covering F# handler authoring, what Wolverine generates as F#, and running on pre-generated F# code under TypeLoadMode.Static. Pulls live code via mdsnippets from the F# samples + the behavioural test (mdsnippets already scans .fs, so no config change was needed; F# uses the comment-based // begin-snippet / // end-snippet markers). Snippets added: - sample_fsharp_efcore_handler / _efcore_bootstrap (WolverineFSharpSample) - sample_fsharp_behavioural_handler (Wolverine.Behavioural.FSharpApp) + the static host config (sample_fsharp_static_host, Wolverine.Behavioural.FSharpTests) - sample_fsharp_marten_document_handler, _aggregate_handler, _aggregate_projection - sample_fsharp_fluentvalidation_validator, _cosmos_handler The generated F# adapter is shown as a static block (Generated.fs is regenerated, so it can't carry persistent snippet markers). All samples still compile and the behavioural test stays green (the markers are F# comments). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 tasks
This was referenced Jun 1, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2969.
Adds a "Using Wolverine with F#" tutorial (
docs/tutorials/fsharp.md, wired into the Tutorials sidebar) documenting the F# code-generation story landed across #2983–#2987:TypeLoadMode.Static(the headline: no runtime Roslyn),Evolve-override for aggregates,RuleForauto-quotation,[<CLIMutable>]).Live snippets from the F# samples
All code is pulled via mdsnippets from the runnable F# samples + the behavioural test, so it stays in sync. mdsnippets already scans
.fs(verified — nomdsnippets.jsonchange needed); F# uses the comment-based// begin-snippet:/// end-snippetmarkers. Snippets added across the samples:sample_fsharp_efcore_handler,_efcore_bootstrap,_behavioural_handler,_static_host,_marten_document_handler,_aggregate_handler,_aggregate_projection,_fluentvalidation_validator,_cosmos_handler.The generated F# adapter is shown as a static fenced block (its
Generated.fsis regenerated by the gate, so it can't carry persistent snippet markers).Verification
mdsnippetsresolves all 9 snippets (exit 0); the page is fully populated.wolverine_fsharp.slnxclean) and the behavioural test stays green — the markers are F# comments.vitepress buildwasn't run (docsnode_modulesnot installed here); the page uses only standard Vitepress constructs and the sidebar entry mirrors the existing ones.🤖 Generated with Claude Code