Skip to content

Commit

Permalink
Simplify definition of Coin.add.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed May 31, 2023
1 parent ccb09d7 commit 59dfafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/primitive/lib/Cardano/Wallet/Primitive/Types/Coin.hs
Expand Up @@ -266,7 +266,7 @@ subtract (Coin a) (Coin b)
-- | Calculates the combined value of two coins.
--
add :: Coin -> Coin -> Coin
add (Coin a) (Coin b) = Coin (a + b)
add = (<>)

-- | Subtracts the second coin from the first.
--
Expand Down

0 comments on commit 59dfafc

Please sign in to comment.