-
Notifications
You must be signed in to change notification settings - Fork 23
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 GADT constructor arguments #539
Conversation
4478883
to
11db5cf
Compare
:: ConwayEraOnwards era | ||
-> Ledger.ConwayTxCert (ShelleyLedgerEra era) | ||
-> Certificate era | ||
-- Pre-Conway |
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.
Should we turn it into haddock?
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.
I don't understand what this list means.
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.
It's not starting with -- |
so this comment is not a haddock comment.
-- ^ Shelley ledger transaction certificate | ||
-> Certificate era | ||
|
||
-- Conway onwards |
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.
Same as for the other constructor? I guess it wouldn't be a very informative haddock.
@@ -798,12 +801,15 @@ deriving instance Eq (TxInsCollateral era) | |||
deriving instance Show (TxInsCollateral era) | |||
|
|||
data TxInsReference build era where | |||
-- ^ No transaction inputs |
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.
-- ^ No transaction inputs | |
-- | No transaction inputs |
@@ -914,26 +923,30 @@ prettyRenderTxOut (TxOutInAnyEra _ (TxOut (AddressInEra _ addr) txOutVal _ _)) = | |||
<> renderValue (txOutValueToValue txOutVal) | |||
|
|||
data TxReturnCollateral ctx era where | |||
|
|||
-- ^ No return collateral |
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.
-- ^ No return collateral | |
-- | No return collateral |
-> TxReturnCollateral ctx era | ||
|
||
deriving instance Eq (TxReturnCollateral ctx era) | ||
deriving instance Show (TxReturnCollateral ctx era) | ||
|
||
data TxTotalCollateral era where | ||
|
||
-- ^ No total collateral |
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.
-- ^ No total collateral | |
-- | No total collateral |
@@ -1140,13 +1192,18 @@ deriving instance Show (TxUpdateProposal era) | |||
|
|||
data TxMintValue build era where | |||
|
|||
TxMintNone :: TxMintValue build era | |||
-- ^ No minting |
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.
-- ^ No minting | |
-- | No minting |
-- + transaction metadata (in Shelley and later) | ||
-- + auxiliary scripts (in Allegra and later) |
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.
-- + transaction metadata (in Shelley and later) | |
-- + auxiliary scripts (in Allegra and later) | |
-- - transaction metadata additionally (in Shelley and later) | |
-- - auxiliary scripts additionally (in Allegra and later) |
I think the lists can only be with dashes and stars https://hackage.haskell.org/package/haddock-cheatsheet-0.1.0.1/docs/Doc-Haddock.html#g:9
... or you can add plus signs after stars for example
-- - + transaction metadata (in Shelley and later)
-> Alonzo.TxDats (ShelleyLedgerEra era) | ||
-> Alonzo.Redeemers (ShelleyLedgerEra era) | ||
-> TxBodyScriptData era | ||
-- ^ No script data |
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.
-- ^ No script data | |
-- | No script data |
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.
Nice! Have you tested it with haddock command? For example: https://github.com/IntersectMBO/cardano-api/blob/main/.github/workflows/github-page.yml#L33
(this workflow takes 40mins so it's not triggered on PRs)
This PR is stale because it has been open 45 days with no activity. |
FYI: Because we now enforce the use of |
b23368b
to
94a9c1d
Compare
FYI: I have rebased your branch because we have done changes to the formatting. I have made a copy of the unrebased branch here: backup/newhoggy/document-gadt-constructor-arguments |
d480c63
to
3d95c7d
Compare
3d95c7d
to
9cb8d6d
Compare
9cb8d6d
to
454a4e4
Compare
This PR is stale because it has been open 45 days with no activity. |
This issue was closed because it has been stalled for 60 days with no activity. |
Changelog
Context
Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist