HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulevector-space-0.19Haskell2010

Data.AdditiveGroup

Synopsis
  • Packagevector-space-0.19
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceAdditiveGroup.hs
classclass AdditiveGroup v where

Additive group v.

Methods

  • zeroV :: v

    The zero element: identity for (^+^)

  • (^+^) :: v -> v -> vinfixl 6

    Add vectors

  • negateV :: v -> v

    Additive inverse

  • (^-^) :: v -> v -> vinfixl 6

    Group subtraction

Instances29AdditiveGroup, …
newtypenewtype Sum a

Monoid under group addition. Alternative to the Sum in Data.Monoid, which uses Num instead of AdditiveGroup.

Constructors

Instances10Functor, Applicative, Bounded, Eq, Ord, Read, …