chore: release fp-library v0.16.1 / fp-macros v0.7.1#27
Merged
Conversation
Explicit closureless dispatch functions (compact, separate, alt, join) showed raw type params (FA) instead of branded container types in their HM signatures. The synthetic signature builder now recognizes both InferableBrand-bounded and Dispatch-bounded params as container types, and handles impl *Dispatch params for closureless explicit functions (e.g., explicit::join). Also adds cargo-insta to the dev shell and documents snapshot tests, compile-fail tests, and dev shell troubleshooting in CONTRIBUTING.md.
Add a doc_include! proc macro that reads markdown files and rewrites relative .md links to rustdoc intra-doc links pointing at crate::docs::module_name submodules. This makes cross-document links work in rendered rustdoc output (docs.rs and local cargo doc builds). Create a docs module with 19 submodules, one per design document. Each submodule's doc comment is generated from the corresponding markdown file via doc_include!, so the same source files serve GitHub rendering, crate root documentation, and per-module documentation pages. Mark pseudo-code blocks in coyoneda.md, impl-trait-vs-named-generics.md, and limitations-and-workarounds.md as rust,ignore so they compile correctly as rustdoc examples.
Replace the 8 include_str!/doc_include! inlined documents on the crate root page with concise "How it Works" summaries and a Documentation links section pointing to the docs module subpages. This makes the crate root page scannable while keeping full content one click away. Mark pseudo-code blocks in optics-analysis.md, profunctor-analysis.md, and lifetime-ablation-experiment.md as rust,ignore or text so they compile correctly as rustdoc examples.
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.
Summary
doc_include!proc macro for markdown files with link rewriting to rustdoc intra-doc links.docsmodule with 19 submodules for per-document rustdoc pages.functions.rsandtrait_kind!/impl_kind!documentation.cargo-instaadded to dev shell, CONTRIBUTING.md updated with snapshot test and trybuild instructions.rust,ignorefor correct rustdoc compilation.Test plan
just verifypasses (fmt, check, clippy, deny, doc, test).