Skip to content
New issue

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

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

Already on GitHub? # to your account

Refactor functors and related packages #22

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

rhendric
Copy link
Member

@rhendric rhendric commented Feb 3, 2021

This is part of a set of commits that rearrange the dependencies between
multiple packages. The immediate motivation is to allow certain newtypes
to be reused between profunctor and bifunctors, but this particular
approach goes a little beyond that in two ways: first, it attempts to
move data types (either, tuple) toward the bottom of the dependency
stack; and second, it tries to ensure no package comes between
functors and the packages most closely related to it, in order to open
the possibility of merging those packages together (which may be
desirable if at some point in the future additional newtypes are added
which reveal new and exciting constraints on the module dependency
graph).

Description of the change

See discussion in purescript/purescript-profunctor#23.


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

This is part of a set of commits that rearrange the dependencies between
multiple packages. The immediate motivation is to allow certain newtypes
to be reused between `profunctor` and `bifunctors`, but this particular
approach goes a little beyond that in two ways: first, it attempts to
move data types (`either`, `tuple`) toward the bottom of the dependency
stack; and second, it tries to ensure no package comes between
`functors` and the packages most closely related to it, in order to open
the possibility of merging those packages together (which may be
desirable if at some point in the future additional newtypes are added
which reveal new and exciting constraints on the module dependency
graph).
@rhendric rhendric force-pushed the rhendric/refunctoring branch from 0b05711 to 5ccc3b5 Compare February 3, 2021 18:40
@rhendric rhendric mentioned this pull request Feb 3, 2021
@thomashoneyman thomashoneyman merged commit 1b48cfd into purescript:master Feb 4, 2021
@rhendric rhendric deleted the rhendric/refunctoring branch February 4, 2021 17:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants