Skip to content

Commit 55ae010

Browse files
committed
Refactor functors and related packages
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).
1 parent 6f7a11f commit 55ae010

File tree

7 files changed

+3
-174
lines changed

7 files changed

+3
-174
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ Notable changes to this project are documented in this file. The format is based
77
Breaking changes:
88
- Added support for PureScript 0.14 and dropped support for all previous versions (#35)
99
- Removed `Costrong` and `Cochoice` from `Costar` (#38)
10+
- `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` (TBD)
11+
- `Wrap` was deleted; it is expected that any instances of `Profunctor` will be accompanied by a corresponding instance of `Functor` (TBD)
1012

1113
New features:
14+
- This package no longer depends on the `purescript-contravariant` package (TBD)
1215

1316
Bugfixes:
1417

bower.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"package.json"
2222
],
2323
"dependencies": {
24-
"purescript-contravariant": "master",
2524
"purescript-control": "master",
2625
"purescript-distributive": "master",
2726
"purescript-either": "master",

src/Data/Profunctor/Clown.purs

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Data/Profunctor/Costar.purs

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/Data/Profunctor/Cowrap.purs

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Data/Profunctor/Joker.purs

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/Data/Profunctor/Wrap.purs

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)