linear 1.10.1.1 → 1.10.1.2
raw patch · 2 files changed
+4/−4 lines, 2 filesdep +base-orphansdep ~transformersPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies added: base-orphans
Dependency ranges changed: transformers
API changes (from Hackage documentation)
- Linear.Quaternion: instance Typeable1 Quaternion
- Linear.V: instance Reifies * s Int => Dim (ReifiedDim s)
- Linear.V0: instance Typeable1 V0
- Linear.V1: instance Typeable1 V1
- Linear.V2: instance Typeable1 V2
- Linear.V3: instance Typeable1 V3
- Linear.V4: instance Typeable1 V4
+ Linear.Quaternion: instance Typeable Quaternion
+ Linear.V: instance Generic1 (V n)
+ Linear.V: instance KnownNat n => Dim n
+ Linear.V: instance Reifies s Int => Dim (ReifiedDim s)
+ Linear.V0: instance Typeable V0
+ Linear.V1: instance Typeable V1
+ Linear.V2: instance Typeable V2
+ Linear.V3: instance Typeable V3
+ Linear.V4: instance Typeable V4
- Linear.Vector: class Functor f => Additive f where zero = to1 gzero ^+^ = liftU2 (+) x ^-^ y = x ^+^ negated y lerp alpha u v = alpha *^ u ^+^ (1 - alpha) *^ v liftU2 = liftA2 liftI2 = liftA2
+ Linear.Vector: class Functor f => Additive f where zero = to1 gzero (^+^) = liftU2 (+) x ^-^ y = x ^+^ negated y lerp alpha u v = alpha *^ u ^+^ (1 - alpha) *^ v liftU2 = liftA2 liftI2 = liftA2
Files
- linear.cabal +2/−2
- src/Linear/V2.hs +2/−2
linear.cabal view
@@ -1,6 +1,6 @@ name: linear category: Math, Algebra-version: 1.10.1.1+version: 1.10.1.2 license: BSD3 cabal-version: >= 1.8 license-file: LICENSE@@ -43,7 +43,7 @@ semigroupoids >= 3 && < 5, tagged >= 0.4.4 && < 1, template-haskell >= 2.7 && < 3.0,- transformers >= 0.2 && < 0.4,+ transformers >= 0.2 && < 0.5, unordered-containers >= 0.2.3 && < 0.3, vector >= 0.10 && < 0.11, void >= 0.6 && < 1
src/Linear/V2.hs view
@@ -111,13 +111,13 @@ instance Apply V2 where V2 a b <.> V2 d e = V2 (a d) (b e)- {-@ INLINE (<.>) #-}+ {-# INLINE (<.>) #-} instance Applicative V2 where pure a = V2 a a {-# INLINE pure #-} V2 a b <*> V2 d e = V2 (a d) (b e)- {-@ INLINE (<*>) #-}+ {-# INLINE (<*>) #-} instance Hashable a => Hashable (V2 a) where hashWithSalt s (V2 a b) = s `hashWithSalt` a `hashWithSalt` b