Skip to content

Commit

Permalink
Fix - for Natural
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumlamm committed Jan 29, 2025
1 parent 85a7245 commit 6837ee0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Numeric/Natural.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ instance Show Natural where
instance Num Natural where
N x + N y = N (x + y)
N x - N y | y > x = throw Underflow
| otherwise = N (x - y)
N x * N y = N (x * y)
abs x = x
signum x = if x > 0 then 1 else 0
Expand Down

0 comments on commit 6837ee0

Please sign in to comment.