Skip to content

Commit

Permalink
Simplify implementation of TokenQuantity.add.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Dec 2, 2022
1 parent df78c86 commit 1d0a86b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -117,7 +117,7 @@ zero = TokenQuantity 0
--------------------------------------------------------------------------------

add :: TokenQuantity -> TokenQuantity -> TokenQuantity
add (TokenQuantity x) (TokenQuantity y) = TokenQuantity $ x + y
add = (<>)

-- | Subtracts the second token quantity from the first.
--
Expand Down

0 comments on commit 1d0a86b

Please sign in to comment.