Skip to content

Commit

Permalink
Simplify definition of TokenQuantity.add.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed May 31, 2023
1 parent a0c8bfc commit 423836d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -128,7 +128,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 423836d

Please sign in to comment.