Skip to content

Commit

Permalink
dependecy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyday567 committed Aug 15, 2018
1 parent 854bcb0 commit fe9081e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion numhask/src/NumHask/Algebra/Linear/Hadamard.hs
Expand Up @@ -56,5 +56,5 @@ instance (Multiplicative (m a), Hadamard m a) => Invertible (Product (Hadamard_
inv = coerce ((./.) @m @a (one @(m a)))

instance (Additive (Hadamard_ (m a))
, Multiplicative (Hadamard_ (m a)))
, Magma (Sum (Hadamard_ (m a))))
=> Distributive (Hadamard_ (m a))
4 changes: 2 additions & 2 deletions numhask/src/NumHask/Data/Complex.hs
Expand Up @@ -76,7 +76,7 @@ instance (Subtractive a, Multiplicative a) =>
Absorbing (Product (Complex a)) where
absorb = Product $ zero' :+ zero'

instance (Invertible (Sum a), Distributive a) =>
instance (Distributive a) =>
Distributive (Complex a)

instance (Subtractive a, Multiplicative a) =>
Expand Down Expand Up @@ -139,7 +139,7 @@ instance (Ord a, TrigField a, ExpField a) => ExpField (Complex a) where
| x P.== zero P.&& y P.== zero = y -- must be after the other double zero tests
| P.otherwise = x + y -- x or y is a NaN, return a NaN (via +)

instance (Distributive a, Invertible (Sum a)) => InvolutiveRing (Complex a) where
instance (Ring a) => InvolutiveRing (Complex a) where
adj (a :+ b) = a :+ negate b

instance (UpperBoundedField a, IntegralDomain a) => UpperBoundedField (Complex a) where
Expand Down

0 comments on commit fe9081e

Please sign in to comment.