-
Notifications
You must be signed in to change notification settings - Fork 156
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
Ts mono unifiedmaps #2584
Ts mono unifiedmaps #2584
Conversation
e5c53a8
to
b32183d
Compare
eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Generator/Trace/Chain.hs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TimSheard this really is a great abstraction! It's fantastic how the new code reads so similar to the old! I only had a few trivial comments. I'll wait to approve until my eyes have a change to go over this. Thanks for all this hard work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a pretty big PR.
Here is what I have so far. I'll do a second pass when I am back from vacation.
6b7ed2e
to
3aca069
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few more comments
5a5c3fc
to
972b127
Compare
This replaces 3 separate Data.Map in DState, with 1 UnifiedMap. Added SetAlgebra instances for UMap. Added libs/cardano-data/src/Data/MapExtras.hs which provide operation on Data.Map not available i the standard library. Rewrote incrementalStakeDistr to use the Unified reward maps. Added 50 property tests for UMap. Added the space saving Trip data and Triple pattern.
0c7038b
to
bdf8df5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet!
…ntersectMBO#2584) This replaces 3 separate Data.Map in DState, with 1 UnifiedMap. Added SetAlgebra instances for UMap. Added libs/cardano-data/src/Data/MapExtras.hs which provide operation on Data.Map not available i the standard library. Rewrote incrementalStakeDistr to use the Unified reward maps. Added 50 property tests for UMap. Added the space saving Trip data and Triple pattern.
Introduces UnifiedMap, ViewMap, Triple
Adds SetAlgebra Instances
Adds FromSharedCBOR instances
Fixes files so the new types are actually used