-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These types were introduced because we parameterized the **container type** for change in `TxFeeAndChange`: ```hs data TxFeeAndChange f = TxFeeAndChange { fee :: Coin , change :: f Coin } ``` This required us to instantiate `f` with types of kind `* -> *`. But later on we parameterized the type of `change` so that it can be any type of kind `*`: ```hs data TxFeeAndChange change = TxFeeAndChange { fee :: Coin , change :: change } ``` Hence we can make the following simplifications: - Empty Void -> () - Solo Coin -> Coin And therefore we can remove the `Empty` and `Solo` types. In response to review discussion: #3238 (comment)
- Loading branch information
1 parent
498f731
commit b6d2189
Showing
2 changed files
with
15 additions
and
39 deletions.
There are no files selected for viewing
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
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