iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Monoid.GCD

Synopsis

Documentation

newtype GCD a Source #

>>> mempty :: GCD Int
GCD {getGCD = 0}
>>> GCD (-4) <> GCD 6
GCD {getGCD = 2}
>>> GCD (-1) <> mempty
GCD {getGCD = 1}

Constructors

GCD 

Fields

Instances

Instances details
Unbox a => Vector Vector (GCD a) Source # 
Instance details

Defined in Data.Monoid.GCD

Methods

basicUnsafeFreeze :: Mutable Vector s (GCD a) -> ST s (Vector (GCD a))

basicUnsafeThaw :: Vector (GCD a) -> ST s (Mutable Vector s (GCD a))

basicLength :: Vector (GCD a) -> Int

basicUnsafeSlice :: Int -> Int -> Vector (GCD a) -> Vector (GCD a)

basicUnsafeIndexM :: Vector (GCD a) -> Int -> Box (GCD a)

basicUnsafeCopy :: Mutable Vector s (GCD a) -> Vector (GCD a) -> ST s ()

elemseq :: Vector (GCD a) -> GCD a -> b -> b

Unbox a => MVector MVector (GCD a) Source # 
Instance details

Defined in Data.Monoid.GCD

Methods

basicLength :: MVector s (GCD a) -> Int

basicUnsafeSlice :: Int -> Int -> MVector s (GCD a) -> MVector s (GCD a)

basicOverlaps :: MVector s (GCD a) -> MVector s (GCD a) -> Bool

basicUnsafeNew :: Int -> ST s (MVector s (GCD a))

basicInitialize :: MVector s (GCD a) -> ST s ()

basicUnsafeReplicate :: Int -> GCD a -> ST s (MVector s (GCD a))

basicUnsafeRead :: MVector s (GCD a) -> Int -> ST s (GCD a)

basicUnsafeWrite :: MVector s (GCD a) -> Int -> GCD a -> ST s ()

basicClear :: MVector s (GCD a) -> ST s ()

basicSet :: MVector s (GCD a) -> GCD a -> ST s ()

basicUnsafeCopy :: MVector s (GCD a) -> MVector s (GCD a) -> ST s ()

basicUnsafeMove :: MVector s (GCD a) -> MVector s (GCD a) -> ST s ()

basicUnsafeGrow :: MVector s (GCD a) -> Int -> ST s (MVector s (GCD a))

(Num a, Integral a) => Monoid (GCD a) Source # 
Instance details

Defined in Data.Monoid.GCD

Methods

mempty :: GCD a #

mappend :: GCD a -> GCD a -> GCD a #

mconcat :: [GCD a] -> GCD a #

Integral a => Semigroup (GCD a) Source # 
Instance details

Defined in Data.Monoid.GCD

Methods

(<>) :: GCD a -> GCD a -> GCD a #

sconcat :: NonEmpty (GCD a) -> GCD a #

stimes :: Integral b => b -> GCD a -> GCD a #

Show a => Show (GCD a) Source # 
Instance details

Defined in Data.Monoid.GCD

Methods

showsPrec :: Int -> GCD a -> ShowS #

show :: GCD a -> String #

showList :: [GCD a] -> ShowS #

Eq a => Eq (GCD a) Source # 
Instance details

Defined in Data.Monoid.GCD

Methods

(==) :: GCD a -> GCD a -> Bool #

(/=) :: GCD a -> GCD a -> Bool #

Unbox a => Unbox (GCD a) Source # 
Instance details

Defined in Data.Monoid.GCD

newtype MVector s (GCD a) Source # 
Instance details

Defined in Data.Monoid.GCD

newtype MVector s (GCD a) = MV_GCD (MVector s a)
newtype Vector (GCD a) Source # 
Instance details

Defined in Data.Monoid.GCD

newtype Vector (GCD a) = V_GCD (Vector a)