-
Notifications
You must be signed in to change notification settings - Fork 114
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
Treewide: Basic polymorphic refactoring #849
Merged
Anton-Latukha
merged 9 commits into
master
from
2021-02-10-upd-polymorphic-base-refactor
Feb 14, 2021
Merged
Treewide: Basic polymorphic refactoring #849
Anton-Latukha
merged 9 commits into
master
from
2021-02-10-upd-polymorphic-base-refactor
Feb 14, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are some `(:|)` use. I looked carefully, but there still can be something, expecially in Repl or test parts of the code. The `mempty` of the left hand side should not be present. Also specially checked the shadowing case with: {-# OPTIONS_GHC -fno-warn-name-shadowing #-}, where were none.
Anton-Latukha
force-pushed
the
2021-02-10-upd-polymorphic-base-refactor
branch
from
February 10, 2021 12:04
bf3069e
to
3d77123
Compare
Replaced only where the `(Semigroup a => Maybe a)` is already present, so does not change the signatures.
Anton-Latukha
force-pushed
the
2021-02-10-upd-polymorphic-base-refactor
branch
from
February 10, 2021 12:11
3d77123
to
8152874
Compare
Benchmarks:
|
Profiling computational execution also looks equivalent. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Because top-level signatures are constant - polymorphism inside them should be inferred to concrete types, so after inference top-level functions binary code should be pretty much the same as also compiled performance result.