Skip to content

Commit c57f62b

Browse files
authored
Dont' do the pattern match in ℚ._-_ and _÷_ (#1846)
1 parent f33a3a8 commit c57f62b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Rational/Base.agda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ p@record{} * q@record{} = (↥ p ℤ.* ↥ q) / (↧ₙ p ℕ.* ↧ₙ q)
222222

223223
-- subtraction
224224
_-_ :
225-
p@record{} - q@record{} = p + (- q)
225+
p - q = p + (- q)
226226

227227
-- reciprocal: requires a proof that the numerator is not zero
228228
1/_ : (p : ℚ) .{{_ : NonZero p}}
@@ -231,7 +231,7 @@ p@record{} - q@record{} = p + (- q)
231231

232232
-- division: requires a proof that the denominator is not zero
233233
_÷_ : (p q : ℚ) .{{_ : NonZero q}}
234-
p@record{} ÷ q@record{} = p * (1/ q)
234+
p ÷ q = p * (1/ q)
235235

236236
-- max
237237
_⊔_ : (p q : ℚ)

0 commit comments

Comments
 (0)