iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Monoid.LCM

Synopsis

Documentation

newtype LCM a Source #

>>> mempty :: LCM Int
LCM {getLCM = 1}
>>> LCM (-2) <> LCM 3
LCM {getLCM = 6}
>>> LCM (-1) <> mempty
LCM {getLCM = 1}

Constructors

LCM 

Fields

Instances

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

Defined in Data.Monoid.LCM

Methods

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

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

basicLength :: Vector (LCM a) -> Int

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

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

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

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

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

Defined in Data.Monoid.LCM

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Defined in Data.Monoid.LCM

Methods

mempty :: LCM a #

mappend :: LCM a -> LCM a -> LCM a #

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

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

Defined in Data.Monoid.LCM

Methods

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

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

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

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

Defined in Data.Monoid.LCM

Methods

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

show :: LCM a -> String #

showList :: [LCM a] -> ShowS #

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

Defined in Data.Monoid.LCM

Methods

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

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

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

Defined in Data.Monoid.LCM

newtype MVector s (LCM a) Source # 
Instance details

Defined in Data.Monoid.LCM

newtype MVector s (LCM a) = MV_LCM (MVector s a)
newtype Vector (LCM a) Source # 
Instance details

Defined in Data.Monoid.LCM

newtype Vector (LCM a) = V_LCM (Vector a)