Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize utility functions #22

Open
WhatisRT opened this issue Feb 28, 2025 · 0 comments
Open

Organize utility functions #22

WhatisRT opened this issue Feb 28, 2025 · 0 comments

Comments

@WhatisRT
Copy link
Collaborator

It is often difficult to find some metaprogramming utility functions for a certain job. The big issue here is that they often have somewhat different contexts in which they are defined, most notably some functions are monadic and some aren't. Nonetheless, we probably use the utility functions more than we write them, so we should optimize for findability possibly at some expense of a more complicated tree of module dependencies.

My proposal would be to make modules such as

  • Reflection.Util.Term
  • Reflection.Util.Telescope
  • Reflection.Util.Type
    etc.

There are likely going to be lots of cross-imports between them, which would become cyclical dependencies, so more realistically we would have those modules mostly just reexport names further down the hierarchy, e.g. from Reflection.Util.Term.Monadic, to break the cycles.

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

No branches or pull requests

1 participant