Skip to content

Conversation

@dschrempf
Copy link
Collaborator

@dschrempf dschrempf commented Nov 24, 2025

Allow user to control binding categories in a more fine-grained manner.

In particular, we will be able to select/deselect binding categories and rename
declarations within specific categories (e.g., functions).

We will have

type data Level = Types | Terms

data Choice (lvl :: Level) where
  ExcludeCategory     :: Choice lvl
  IncludeTypeCategory :: Choice Types
  IncludeTermCategory :: (Text -> Text) -> Choice Terms

Defaults

  • TH and literate modes: useSafeCategory.
  • preprocess mode: useAllCategories.

Remarks

EDIT: Updated to reflect most recent meeting with Edsko.

@dschrempf dschrempf force-pushed the dom/1201/binding-category-selection branch from 0e0f83e to 48f7ed0 Compare November 24, 2025 12:21
@dschrempf dschrempf self-assigned this Nov 24, 2025
@dschrempf dschrempf linked an issue Nov 26, 2025 that may be closed by this pull request
@dschrempf dschrempf changed the title Binding category predicates Allow choice of binding category and renaming of bindings in specific categories (e.g., functions) Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unified choice of binding category between TH and CLI

2 participants