Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
>>>
mempty :: GCD Int
GCD {getGCD = 0}>>>
GCD (-4) <> GCD 6
GCD {getGCD = 2}>>>
GCD (-1) <> mempty
GCD {getGCD = 1}
Instances
Unbox a => Vector Vector (GCD a) Source # | |
Defined in Data.Monoid.GCD 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 () | |
Unbox a => MVector MVector (GCD a) Source # | |
Defined in Data.Monoid.GCD 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 # | |
Integral a => Semigroup (GCD a) Source # | |
Show a => Show (GCD a) Source # | |
Eq a => Eq (GCD a) Source # | |
Unbox a => Unbox (GCD a) Source # | |
Defined in Data.Monoid.GCD | |
newtype MVector s (GCD a) Source # | |
Defined in Data.Monoid.GCD | |
newtype Vector (GCD a) Source # | |
Defined in Data.Monoid.GCD |