Skip to content

Commit

Permalink
Refactor functors and related packages (#41)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
rhendric authored Feb 4, 2021
1 parent 6f7a11f commit 98fd9f9
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 174 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ Notable changes to this project are documented in this file. The format is based
Breaking changes:
- Added support for PureScript 0.14 and dropped support for all previous versions (#35)
- Removed `Costrong` and `Cochoice` from `Costar` (#38)
- `Clown`, `Costar`, `Cowrap`, and `Joker` have been moved to the `Data.Functors` module in the `purescript-functors` package, so that the same types can also be used as bifunctors; `Cowrap` was renamed to `Flip` (#41)
- `Wrap` was deleted; it is expected that any instances of `Profunctor` will be accompanied by a corresponding instance of `Functor` (#41)

New features:
- This package no longer depends on the `purescript-contravariant` package (#41)

Bugfixes:

Expand Down
1 change: 0 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"package.json"
],
"dependencies": {
"purescript-contravariant": "master",
"purescript-control": "master",
"purescript-distributive": "master",
"purescript-either": "master",
Expand Down
27 changes: 0 additions & 27 deletions src/Data/Profunctor/Clown.purs

This file was deleted.

62 changes: 0 additions & 62 deletions src/Data/Profunctor/Costar.purs

This file was deleted.

21 changes: 0 additions & 21 deletions src/Data/Profunctor/Cowrap.purs

This file was deleted.

43 changes: 0 additions & 43 deletions src/Data/Profunctor/Joker.purs

This file was deleted.

20 changes: 0 additions & 20 deletions src/Data/Profunctor/Wrap.purs

This file was deleted.

0 comments on commit 98fd9f9

Please sign in to comment.