-
Notifications
You must be signed in to change notification settings - Fork 9
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
Public API of CoinSelection
Module.
#53
Merged
jonathanknowles
merged 18 commits into
master
from
jonathanknowles/module-structure-and-docs
Apr 22, 2020
Merged
Public API of CoinSelection
Module.
#53
jonathanknowles
merged 18 commits into
master
from
jonathanknowles/module-structure-and-docs
Apr 22, 2020
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
These will be omitted from generated documentation.
If the user wishes to perform validation, they can perform it after calling `selectCoins`.
To `CoinSelectionInputLimit`. Justification: the record now only provides this item.
This type holds all parameters required by a coin selection algorithm.
This type holds all values returned by a `CoinSelectionAlgorithm`.
Additionally, change the order in which coin selection types are presested in the generated documentation.
468af7f
to
49de122
Compare
This is for consistency with naming elsewhere.
This has two advantages: 1. We can give field names to error parameters. 2. There's more documentation space to explain each error condition. This change also adds documentation for each error condition that links back to types defined in the CoinSelection module.
c8c94d0
to
40f353d
Compare
CoinSelection
module.
CoinSelection
module.CoinSelection
Module.
rvl
approved these changes
Apr 22, 2020
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
In response to review feedback: #53 (comment)
In response to review feedback: #53 (comment)
18 tasks
paweljakubas
approved these changes
Apr 22, 2020
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.
very nice documentation pimping;-) great job!
@paweljakubas wrote:
Thanks for reviewing it! |
9 tasks
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.
Related Issue
#18
#30
Summary
This PR makes a number of changes aimed at improving the public API and documentation:
CoinSelection
module.OPTIONS_HADDOCK prune
to hide internal functions from Haddock documentation.Show
instances more informative.CoinSelection
, they can easily validate it themselves after callingselectCoins
.