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

document laws #9

Merged
merged 2 commits into from
Jun 3, 2017
Merged

document laws #9

merged 2 commits into from
Jun 3, 2017

Conversation

matthewleon
Copy link
Contributor

No description provided.

-- | - `distribute = collect id`
-- | - `distribute <<< distribute = id`
-- | - `collect f = distribute <<< map f`
-- | - `map f = runIdentity <<< collect (Identity <<< f)`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we need an unwrap instead of runIdentity here?

Or perhaps we should use un Identity / un Compose in both of these to make it explicit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. My suspicion is that the potential users of this lib will be familiar with the unwrap idiom.

@paf31 paf31 merged commit 51760fb into purescript:master Jun 3, 2017
@paf31
Copy link
Contributor

paf31 commented Jun 3, 2017

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants