Skip to content

Commit 4650e8d

Browse files
committed
Merge pull request #84 from purescript/redundant-field-constraint
Remove CommutativeRing constraint from Field
2 parents e8f155a + fb12344 commit 4650e8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Data/Field.purs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import Data.Unit (Unit)
1515
-- | The `Field` class is for types that are commutative fields.
1616
-- |
1717
-- | Instances must satisfy the following law in addition to the
18-
-- | `CommutativeRing` and `EuclideanRing` laws:
18+
-- | `EuclideanRing` laws:
1919
-- |
2020
-- | - Non-zero multiplicative inverse: ``a `mod` b = 0` for all `a` and `b`
21-
class (CommutativeRing a, EuclideanRing a) <= Field a
21+
class EuclideanRing a <= Field a
2222

2323
instance fieldNumber :: Field Number
2424
instance fieldUnit :: Field Unit

0 commit comments

Comments
 (0)