Skip to content

Commit

Permalink
Simplify implementation of TokenMap.isEmpty.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed May 31, 2023
1 parent b558f1f commit bab0861
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -598,7 +598,7 @@ size = Set.size . getAssets
-- | Returns true if and only if the given map is empty.
--
isEmpty :: TokenMap -> Bool
isEmpty = (== empty)
isEmpty = MonoidNull.null

-- | Returns true if and only if the given map is not empty.
--
Expand Down

0 comments on commit bab0861

Please sign in to comment.