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

Add "fixRecord" function. #11

Open
danidiaz opened this issue Feb 24, 2019 · 2 comments
Open

Add "fixRecord" function. #11

danidiaz opened this issue Feb 24, 2019 · 2 comments

Comments

@danidiaz
Copy link
Owner

A function with this signature could make sense:

fixRecord :: forall t. Record ((->) (Record I t)) t -> Record I t

Possible use case: allowing AOP-like features in a record-of-functions, where some functions depend on others.

@danidiaz
Copy link
Owner Author

@danidiaz
Copy link
Owner Author

Instead of (->) (Record I t), perhaps it would be better to use ReaderT m (Record I t) and make it work over any m that is an instance of MonadFix (in particular, Identity).

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