HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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, …