Copyright | [2018..2020] The Accelerate Team |
---|---|
License | BSD3 |
Maintainer | Trevor L. McDonell <trevor.mcdonell@gmail.com> |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Semigroup instances for Accelerate
Since: 1.2.0.0
Documentation
The class of semigroups (types with an associative binary operation).
Instances should satisfy the following:
Since: base-4.9.0.0
(<>) :: a -> a -> a infixr 6 #
An associative operation.
>>>
[1,2,3] <> [4,5,6]
[1,2,3,4,5,6]
Reduce a non-empty list with <>
The default definition should be sufficient, but this can be overridden for efficiency.
>>>
import Data.List.NonEmpty (NonEmpty (..))
>>>
sconcat $ "Hello" :| [" ", "Haskell", "!"]
"Hello Haskell!"
stimes :: Integral b => b -> a -> a #
Repeat a value n
times.
Given that this works on a Semigroup
it is allowed to fail if
you request 0 or fewer repetitions, and the default definition
will do so.
By making this a member of the class, idempotent semigroups
and monoids can upgrade this to execute in \(\mathcal{O}(1)\) by
picking stimes =
or stimesIdempotent
stimes =
respectively.stimesIdempotentMonoid
>>>
stimes 4 [1]
[1,1,1,1]
Instances
Semigroup ByteArray | Since: base-4.17.0.0 |
Semigroup All | Since: base-4.9.0.0 |
Semigroup Any | Since: base-4.9.0.0 |
Semigroup Void | Since: base-4.9.0.0 |
Semigroup Builder | |
Semigroup ByteString | |
Defined in Data.ByteString.Internal.Type (<>) :: ByteString -> ByteString -> ByteString # sconcat :: NonEmpty ByteString -> ByteString # stimes :: Integral b => b -> ByteString -> ByteString # | |
Semigroup ByteString | |
Defined in Data.ByteString.Lazy.Internal (<>) :: ByteString -> ByteString -> ByteString # sconcat :: NonEmpty ByteString -> ByteString # stimes :: Integral b => b -> ByteString -> ByteString # | |
Semigroup ShortByteString | |
Defined in Data.ByteString.Short.Internal (<>) :: ShortByteString -> ShortByteString -> ShortByteString # sconcat :: NonEmpty ShortByteString -> ShortByteString # stimes :: Integral b => b -> ShortByteString -> ShortByteString # | |
Semigroup IntSet | Since: containers-0.5.7 |
Semigroup Ordering | Since: base-4.9.0.0 |
Semigroup Slot | |
Semigroup Cover | |
Semigroup CoverCount | |
Defined in Hedgehog.Internal.Property (<>) :: CoverCount -> CoverCount -> CoverCount # sconcat :: NonEmpty CoverCount -> CoverCount # stimes :: Integral b => b -> CoverCount -> CoverCount # | |
Semigroup GroupName | |
Semigroup Journal | |
Semigroup LabelName | |
Semigroup PropertyName | |
Defined in Hedgehog.Internal.Property (<>) :: PropertyName -> PropertyName -> PropertyName # sconcat :: NonEmpty PropertyName -> PropertyName # stimes :: Integral b => b -> PropertyName -> PropertyName # | |
Semigroup Completer | |
Semigroup ParseError | |
Defined in Options.Applicative.Types (<>) :: ParseError -> ParseError -> ParseError # sconcat :: NonEmpty ParseError -> ParseError # stimes :: Integral b => b -> ParseError -> ParseError # | |
Semigroup OsString | |
Semigroup PosixString | |
Defined in System.OsString.Internal.Types (<>) :: PosixString -> PosixString -> PosixString # sconcat :: NonEmpty PosixString -> PosixString # stimes :: Integral b => b -> PosixString -> PosixString # | |
Semigroup WindowsString | |
Defined in System.OsString.Internal.Types (<>) :: WindowsString -> WindowsString -> WindowsString # sconcat :: NonEmpty WindowsString -> WindowsString # stimes :: Integral b => b -> WindowsString -> WindowsString # | |
Semigroup Doc | |
Semigroup AnsiStyle | Keep the first decision for each of foreground color, background color, boldness, italication, and underlining. If a certain style is not set, the terminal’s default will be used. Example:
is red because the first color wins, and not bold because (or if) that’s the terminal’s default. |
Semigroup OptionSet | Later options override earlier ones. Since: tasty-0.12.0.1 |
Semigroup Builder | |
Semigroup () | Since: base-4.9.0.0 |
(Elt a, Elt b) => Semigroup (Exp (Either a b)) Source # | |
Ord a => Semigroup (Exp (Max a)) Source # | |
Ord a => Semigroup (Exp (Min a)) Source # | |
Num a => Semigroup (Exp (Product a)) Source # | Since: 1.2.0.0 |
Num a => Semigroup (Exp (Sum a)) Source # | Since: 1.2.0.0 |
(Semigroup (Exp a), Elt a) => Semigroup (Exp (Maybe a)) Source # | |
Semigroup (Exp ()) Source # | |
(Elt a, Elt b, Semigroup (Exp a), Semigroup (Exp b)) => Semigroup (Exp (a, b)) Source # | |
(Elt a, Elt b, Elt c, Semigroup (Exp a), Semigroup (Exp b), Semigroup (Exp c)) => Semigroup (Exp (a, b, c)) Source # | |
(Elt a, Elt b, Elt c, Elt d, Semigroup (Exp a), Semigroup (Exp b), Semigroup (Exp c), Semigroup (Exp d)) => Semigroup (Exp (a, b, c, d)) Source # | |
(Elt a, Elt b, Elt c, Elt d, Elt e, Semigroup (Exp a), Semigroup (Exp b), Semigroup (Exp c), Semigroup (Exp d), Semigroup (Exp e)) => Semigroup (Exp (a, b, c, d, e)) Source # | |
Bits a => Semigroup (And a) | Since: base-4.16 |
FiniteBits a => Semigroup (Iff a) | This constraint is arguably
too strong. However, as some types (such as Since: base-4.16 |
Bits a => Semigroup (Ior a) | Since: base-4.16 |
Bits a => Semigroup (Xor a) | Since: base-4.16 |
Semigroup a => Semigroup (Identity a) | Since: base-4.9.0.0 |
Semigroup (First a) | Since: base-4.9.0.0 |
Semigroup (Last a) | Since: base-4.9.0.0 |
Semigroup a => Semigroup (Down a) | Since: base-4.11.0.0 |
Semigroup (First a) | Since: base-4.9.0.0 |
Semigroup (Last a) | Since: base-4.9.0.0 |
Ord a => Semigroup (Max a) | Since: base-4.9.0.0 |
Ord a => Semigroup (Min a) | Since: base-4.9.0.0 |
Monoid m => Semigroup (WrappedMonoid m) | Since: base-4.9.0.0 |
Defined in Data.Semigroup (<>) :: WrappedMonoid m -> WrappedMonoid m -> WrappedMonoid m # sconcat :: NonEmpty (WrappedMonoid m) -> WrappedMonoid m # stimes :: Integral b => b -> WrappedMonoid m -> WrappedMonoid m # | |
Semigroup a => Semigroup (Dual a) | Since: base-4.9.0.0 |
Semigroup (Endo a) | Since: base-4.9.0.0 |
Num a => Semigroup (Product a) | Since: base-4.9.0.0 |
Num a => Semigroup (Sum a) | Since: base-4.9.0.0 |
Semigroup a => Semigroup (STM a) | Since: base-4.17.0.0 |
(Generic a, Semigroup (Rep a ())) => Semigroup (Generically a) | Since: base-4.17.0.0 |
Defined in GHC.Generics (<>) :: Generically a -> Generically a -> Generically a # sconcat :: NonEmpty (Generically a) -> Generically a # stimes :: Integral b => b -> Generically a -> Generically a # | |
Semigroup p => Semigroup (Par1 p) | Since: base-4.12.0.0 |
Semigroup (IntMap a) | Since: containers-0.5.7 |
Semigroup (Seq a) | Since: containers-0.5.7 |
Ord a => Semigroup (Intersection a) | |
Defined in Data.Set.Internal (<>) :: Intersection a -> Intersection a -> Intersection a # sconcat :: NonEmpty (Intersection a) -> Intersection a # stimes :: Integral b => b -> Intersection a -> Intersection a # | |
Semigroup (MergeSet a) | |
Ord a => Semigroup (Set a) | Since: containers-0.5.7 |
Semigroup a => Semigroup (IO a) | Since: base-4.10.0.0 |
Semigroup a => Semigroup (Coverage a) | |
Semigroup a => Semigroup (Label a) | This semigroup is right biased. The name, location and percentage from the
rightmost |
Semigroup (DefaultProp a) | |
Defined in Options.Applicative.Builder.Internal (<>) :: DefaultProp a -> DefaultProp a -> DefaultProp a # sconcat :: NonEmpty (DefaultProp a) -> DefaultProp a # stimes :: Integral b => b -> DefaultProp a -> DefaultProp a # | |
Semigroup (Doc a) | |
Semigroup (Doc ann) | x
|
Semigroup (Array a) | Since: primitive-0.6.3.0 |
Semigroup (PrimArray a) | Since: primitive-0.6.4.0 |
Semigroup (SmallArray a) | Since: primitive-0.6.3.0 |
Defined in Data.Primitive.SmallArray (<>) :: SmallArray a -> SmallArray a -> SmallArray a # sconcat :: NonEmpty (SmallArray a) -> SmallArray a # stimes :: Integral b => b -> SmallArray a -> SmallArray a # | |
Semigroup a => Semigroup (Q a) | Since: template-haskell-2.17.0.0 |
(Hashable a, Eq a) => Semigroup (HashSet a) | \(O(n+m)\) To obtain good performance, the smaller set must be presented as the first argument. Examples
|
Semigroup (Vector a) | |
Prim a => Semigroup (Vector a) | |
Semigroup (Doc a) | |
Semigroup (NonEmpty a) | Since: base-4.9.0.0 |
Semigroup a => Semigroup (Maybe a) | Since: base-4.9.0.0 |
Semigroup a => Semigroup (a) | Since: base-4.15 |
Semigroup [a] | Since: base-4.9.0.0 |
Semigroup (Either a b) | Since: base-4.9.0.0 |
Semigroup (Proxy s) | Since: base-4.9.0.0 |
Semigroup (U1 p) | Since: base-4.12.0.0 |
Semigroup (V1 p) | Since: base-4.12.0.0 |
Semigroup a => Semigroup (ST s a) | Since: base-4.11.0.0 |
Ord k => Semigroup (Map k v) | |
Semigroup (Format r (a -> r)) | |
(Monad m, Semigroup a) => Semigroup (GenT m a) | |
Applicative f => Semigroup (Traversed a f) | |
Semigroup (Mod f a) | Since: optparse-applicative-0.13.0.0 |
(Eq k, Hashable k) => Semigroup (HashMap k v) | If a key occurs in both maps, the mapping from the first will be the mapping in the result. Examples
|
Semigroup b => Semigroup (a -> b) | Since: base-4.9.0.0 |
(Semigroup a, Semigroup b) => Semigroup (a, b) | Since: base-4.9.0.0 |
Semigroup a => Semigroup (Const a b) | Since: base-4.9.0.0 |
(Applicative f, Semigroup a) => Semigroup (Ap f a) | Since: base-4.12.0.0 |
Alternative f => Semigroup (Alt f a) | Since: base-4.9.0.0 |
Semigroup (f p) => Semigroup (Rec1 f p) | Since: base-4.12.0.0 |
Semigroup a => Semigroup (Tagged s a) | |
(Semigroup a, Semigroup b, Semigroup c) => Semigroup (a, b, c) | Since: base-4.9.0.0 |
(Semigroup (f a), Semigroup (g a)) => Semigroup (Product f g a) | Since: base-4.16.0.0 |
(Semigroup (f p), Semigroup (g p)) => Semigroup ((f :*: g) p) | Since: base-4.12.0.0 |
Semigroup c => Semigroup (K1 i c p) | Since: base-4.12.0.0 |
(Semigroup a, Semigroup b, Semigroup c, Semigroup d) => Semigroup (a, b, c, d) | Since: base-4.9.0.0 |
Semigroup (f (g a)) => Semigroup (Compose f g a) | Since: base-4.16.0.0 |
Semigroup (f (g p)) => Semigroup ((f :.: g) p) | Since: base-4.12.0.0 |
Semigroup (f p) => Semigroup (M1 i c f p) | Since: base-4.12.0.0 |
(Semigroup a, Semigroup b, Semigroup c, Semigroup d, Semigroup e) => Semigroup (a, b, c, d, e) | Since: base-4.9.0.0 |
Instances
Functor Min Source # | |
MonadFix Min | Since: base-4.9.0.0 |
Defined in Data.Semigroup | |
Foldable Min | Since: base-4.9.0.0 |
Defined in Data.Semigroup fold :: Monoid m => Min m -> m # foldMap :: Monoid m => (a -> m) -> Min a -> m # foldMap' :: Monoid m => (a -> m) -> Min a -> m # foldr :: (a -> b -> b) -> b -> Min a -> b # foldr' :: (a -> b -> b) -> b -> Min a -> b # foldl :: (b -> a -> b) -> b -> Min a -> b # foldl' :: (b -> a -> b) -> b -> Min a -> b # foldr1 :: (a -> a -> a) -> Min a -> a # foldl1 :: (a -> a -> a) -> Min a -> a # elem :: Eq a => a -> Min a -> Bool # maximum :: Ord a => Min a -> a # | |
Traversable Min | Since: base-4.9.0.0 |
Applicative Min | Since: base-4.9.0.0 |
Functor Min | Since: base-4.9.0.0 |
Monad Min | Since: base-4.9.0.0 |
NFData1 Min | Since: deepseq-1.4.3.0 |
Defined in Control.DeepSeq | |
Generic1 Min | |
(Lift Exp a, Elt (Plain a)) => Lift Exp (Min a) Source # | |
Elt a => Unlift Exp (Min (Exp a)) Source # | |
Unbox a => Vector Vector (Min a) | |
Defined in Data.Vector.Unboxed.Base basicUnsafeFreeze :: Mutable Vector s (Min a) -> ST s (Vector (Min a)) Source # basicUnsafeThaw :: Vector (Min a) -> ST s (Mutable Vector s (Min a)) Source # basicLength :: Vector (Min a) -> Int Source # basicUnsafeSlice :: Int -> Int -> Vector (Min a) -> Vector (Min a) Source # basicUnsafeIndexM :: Vector (Min a) -> Int -> Box (Min a) Source # basicUnsafeCopy :: Mutable Vector s (Min a) -> Vector (Min a) -> ST s () Source # | |
Unbox a => MVector MVector (Min a) | |
Defined in Data.Vector.Unboxed.Base basicLength :: MVector s (Min a) -> Int Source # basicUnsafeSlice :: Int -> Int -> MVector s (Min a) -> MVector s (Min a) Source # basicOverlaps :: MVector s (Min a) -> MVector s (Min a) -> Bool Source # basicUnsafeNew :: Int -> ST s (MVector s (Min a)) Source # basicInitialize :: MVector s (Min a) -> ST s () Source # basicUnsafeReplicate :: Int -> Min a -> ST s (MVector s (Min a)) Source # basicUnsafeRead :: MVector s (Min a) -> Int -> ST s (Min a) Source # basicUnsafeWrite :: MVector s (Min a) -> Int -> Min a -> ST s () Source # basicClear :: MVector s (Min a) -> ST s () Source # basicSet :: MVector s (Min a) -> Min a -> ST s () Source # basicUnsafeCopy :: MVector s (Min a) -> MVector s (Min a) -> ST s () Source # basicUnsafeMove :: MVector s (Min a) -> MVector s (Min a) -> ST s () Source # basicUnsafeGrow :: MVector s (Min a) -> Int -> ST s (MVector s (Min a)) Source # | |
Eq a => Eq (Min a) Source # | |
Ord a => Ord (Min a) Source # | |
Defined in Data.Array.Accelerate.Data.Semigroup (<) :: Exp (Min a) -> Exp (Min a) -> Exp Bool Source # (>) :: Exp (Min a) -> Exp (Min a) -> Exp Bool Source # (<=) :: Exp (Min a) -> Exp (Min a) -> Exp Bool Source # (>=) :: Exp (Min a) -> Exp (Min a) -> Exp Bool Source # min :: Exp (Min a) -> Exp (Min a) -> Exp (Min a) Source # max :: Exp (Min a) -> Exp (Min a) -> Exp (Min a) Source # compare :: Exp (Min a) -> Exp (Min a) -> Exp Ordering Source # | |
Elt a => Elt (Min a) Source # | |
Data a => Data (Min a) | Since: base-4.9.0.0 |
Defined in Data.Semigroup gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Min a -> c (Min a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Min a) # dataTypeOf :: Min a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Min a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Min a)) # gmapT :: (forall b. Data b => b -> b) -> Min a -> Min a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Min a -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Min a -> r # gmapQ :: (forall d. Data d => d -> u) -> Min a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Min a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Min a -> m (Min a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Min a -> m (Min a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Min a -> m (Min a) # | |
(Ord a, Bounded a) => Monoid (Exp (Min a)) Source # | |
(Ord a, Bounded a) => Monoid (Min a) | Since: base-4.9.0.0 |
Ord a => Semigroup (Exp (Min a)) Source # | |
Ord a => Semigroup (Min a) | Since: base-4.9.0.0 |
Bounded a => Bounded (Exp (Min a)) Source # | |
Bounded a => Bounded (Min a) | Since: base-4.9.0.0 |
Enum a => Enum (Min a) | Since: base-4.9.0.0 |
Generic (Min a) | |
Num a => Num (Exp (Min a)) Source # | |
Defined in Data.Array.Accelerate.Data.Semigroup (+) :: Exp (Min a) -> Exp (Min a) -> Exp (Min a) # (-) :: Exp (Min a) -> Exp (Min a) -> Exp (Min a) # (*) :: Exp (Min a) -> Exp (Min a) -> Exp (Min a) # negate :: Exp (Min a) -> Exp (Min a) # abs :: Exp (Min a) -> Exp (Min a) # signum :: Exp (Min a) -> Exp (Min a) # fromInteger :: Integer -> Exp (Min a) # | |
Num a => Num (Min a) | Since: base-4.9.0.0 |
Read a => Read (Min a) | Since: base-4.9.0.0 |
Show a => Show (Min a) | Since: base-4.9.0.0 |
NFData a => NFData (Min a) | Since: deepseq-1.4.2.0 |
Defined in Control.DeepSeq | |
Eq a => Eq (Min a) | Since: base-4.9.0.0 |
Ord a => Ord (Min a) | Since: base-4.9.0.0 |
Hashable a => Hashable (Min a) | |
Prim a => Prim (Min a) | Since: primitive-0.6.5.0 |
Defined in Data.Primitive.Types sizeOfType# :: Proxy (Min a) -> Int# Source # sizeOf# :: Min a -> Int# Source # alignmentOfType# :: Proxy (Min a) -> Int# Source # alignment# :: Min a -> Int# Source # indexByteArray# :: ByteArray# -> Int# -> Min a Source # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, Min a #) Source # writeByteArray# :: MutableByteArray# s -> Int# -> Min a -> State# s -> State# s Source # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> Min a -> State# s -> State# s Source # indexOffAddr# :: Addr# -> Int# -> Min a Source # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, Min a #) Source # writeOffAddr# :: Addr# -> Int# -> Min a -> State# s -> State# s Source # setOffAddr# :: Addr# -> Int# -> Int# -> Min a -> State# s -> State# s Source # | |
Unbox a => Unbox (Min a) | |
Defined in Data.Vector.Unboxed.Base | |
type Rep1 Min | Since: base-4.9.0.0 |
Defined in Data.Semigroup | |
newtype MVector s (Min a) | |
Defined in Data.Vector.Unboxed.Base | |
type Plain (Min a) Source # | |
Defined in Data.Array.Accelerate.Data.Semigroup | |
type Rep (Min a) | Since: base-4.9.0.0 |
Defined in Data.Semigroup | |
newtype Vector (Min a) | |
Defined in Data.Vector.Unboxed.Base |
Instances
Functor Max Source # | |
MonadFix Max | Since: base-4.9.0.0 |
Defined in Data.Semigroup | |
Foldable Max | Since: base-4.9.0.0 |
Defined in Data.Semigroup fold :: Monoid m => Max m -> m # foldMap :: Monoid m => (a -> m) -> Max a -> m # foldMap' :: Monoid m => (a -> m) -> Max a -> m # foldr :: (a -> b -> b) -> b -> Max a -> b # foldr' :: (a -> b -> b) -> b -> Max a -> b # foldl :: (b -> a -> b) -> b -> Max a -> b # foldl' :: (b -> a -> b) -> b -> Max a -> b # foldr1 :: (a -> a -> a) -> Max a -> a # foldl1 :: (a -> a -> a) -> Max a -> a # elem :: Eq a => a -> Max a -> Bool # maximum :: Ord a => Max a -> a # | |
Traversable Max | Since: base-4.9.0.0 |
Applicative Max | Since: base-4.9.0.0 |
Functor Max | Since: base-4.9.0.0 |
Monad Max | Since: base-4.9.0.0 |
NFData1 Max | Since: deepseq-1.4.3.0 |
Defined in Control.DeepSeq | |
Generic1 Max | |
(Lift Exp a, Elt (Plain a)) => Lift Exp (Max a) Source # | |
Elt a => Unlift Exp (Max (Exp a)) Source # | |
Unbox a => Vector Vector (Max a) | |
Defined in Data.Vector.Unboxed.Base basicUnsafeFreeze :: Mutable Vector s (Max a) -> ST s (Vector (Max a)) Source # basicUnsafeThaw :: Vector (Max a) -> ST s (Mutable Vector s (Max a)) Source # basicLength :: Vector (Max a) -> Int Source # basicUnsafeSlice :: Int -> Int -> Vector (Max a) -> Vector (Max a) Source # basicUnsafeIndexM :: Vector (Max a) -> Int -> Box (Max a) Source # basicUnsafeCopy :: Mutable Vector s (Max a) -> Vector (Max a) -> ST s () Source # | |
Unbox a => MVector MVector (Max a) | |
Defined in Data.Vector.Unboxed.Base basicLength :: MVector s (Max a) -> Int Source # basicUnsafeSlice :: Int -> Int -> MVector s (Max a) -> MVector s (Max a) Source # basicOverlaps :: MVector s (Max a) -> MVector s (Max a) -> Bool Source # basicUnsafeNew :: Int -> ST s (MVector s (Max a)) Source # basicInitialize :: MVector s (Max a) -> ST s () Source # basicUnsafeReplicate :: Int -> Max a -> ST s (MVector s (Max a)) Source # basicUnsafeRead :: MVector s (Max a) -> Int -> ST s (Max a) Source # basicUnsafeWrite :: MVector s (Max a) -> Int -> Max a -> ST s () Source # basicClear :: MVector s (Max a) -> ST s () Source # basicSet :: MVector s (Max a) -> Max a -> ST s () Source # basicUnsafeCopy :: MVector s (Max a) -> MVector s (Max a) -> ST s () Source # basicUnsafeMove :: MVector s (Max a) -> MVector s (Max a) -> ST s () Source # basicUnsafeGrow :: MVector s (Max a) -> Int -> ST s (MVector s (Max a)) Source # | |
Eq a => Eq (Max a) Source # | |
Ord a => Ord (Max a) Source # | |
Defined in Data.Array.Accelerate.Data.Semigroup (<) :: Exp (Max a) -> Exp (Max a) -> Exp Bool Source # (>) :: Exp (Max a) -> Exp (Max a) -> Exp Bool Source # (<=) :: Exp (Max a) -> Exp (Max a) -> Exp Bool Source # (>=) :: Exp (Max a) -> Exp (Max a) -> Exp Bool Source # min :: Exp (Max a) -> Exp (Max a) -> Exp (Max a) Source # max :: Exp (Max a) -> Exp (Max a) -> Exp (Max a) Source # compare :: Exp (Max a) -> Exp (Max a) -> Exp Ordering Source # | |
Elt a => Elt (Max a) Source # | |
Data a => Data (Max a) | Since: base-4.9.0.0 |
Defined in Data.Semigroup gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Max a -> c (Max a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Max a) # dataTypeOf :: Max a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Max a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Max a)) # gmapT :: (forall b. Data b => b -> b) -> Max a -> Max a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Max a -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Max a -> r # gmapQ :: (forall d. Data d => d -> u) -> Max a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Max a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Max a -> m (Max a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Max a -> m (Max a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Max a -> m (Max a) # | |
(Ord a, Bounded a) => Monoid (Exp (Max a)) Source # | |
(Ord a, Bounded a) => Monoid (Max a) | Since: base-4.9.0.0 |
Ord a => Semigroup (Exp (Max a)) Source # | |
Ord a => Semigroup (Max a) | Since: base-4.9.0.0 |
Bounded a => Bounded (Exp (Max a)) Source # | |
Bounded a => Bounded (Max a) | Since: base-4.9.0.0 |
Enum a => Enum (Max a) | Since: base-4.9.0.0 |
Generic (Max a) | |
Num a => Num (Exp (Max a)) Source # | |
Defined in Data.Array.Accelerate.Data.Semigroup (+) :: Exp (Max a) -> Exp (Max a) -> Exp (Max a) # (-) :: Exp (Max a) -> Exp (Max a) -> Exp (Max a) # (*) :: Exp (Max a) -> Exp (Max a) -> Exp (Max a) # negate :: Exp (Max a) -> Exp (Max a) # abs :: Exp (Max a) -> Exp (Max a) # signum :: Exp (Max a) -> Exp (Max a) # fromInteger :: Integer -> Exp (Max a) # | |
Num a => Num (Max a) | Since: base-4.9.0.0 |
Read a => Read (Max a) | Since: base-4.9.0.0 |
Show a => Show (Max a) | Since: base-4.9.0.0 |
NFData a => NFData (Max a) | Since: deepseq-1.4.2.0 |
Defined in Control.DeepSeq | |
Eq a => Eq (Max a) | Since: base-4.9.0.0 |
Ord a => Ord (Max a) | Since: base-4.9.0.0 |
Hashable a => Hashable (Max a) | |
Prim a => Prim (Max a) | Since: primitive-0.6.5.0 |
Defined in Data.Primitive.Types sizeOfType# :: Proxy (Max a) -> Int# Source # sizeOf# :: Max a -> Int# Source # alignmentOfType# :: Proxy (Max a) -> Int# Source # alignment# :: Max a -> Int# Source # indexByteArray# :: ByteArray# -> Int# -> Max a Source # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, Max a #) Source # writeByteArray# :: MutableByteArray# s -> Int# -> Max a -> State# s -> State# s Source # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> Max a -> State# s -> State# s Source # indexOffAddr# :: Addr# -> Int# -> Max a Source # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, Max a #) Source # writeOffAddr# :: Addr# -> Int# -> Max a -> State# s -> State# s Source # setOffAddr# :: Addr# -> Int# -> Int# -> Max a -> State# s -> State# s Source # | |
Unbox a => Unbox (Max a) | |
Defined in Data.Vector.Unboxed.Base | |
type Rep1 Max | Since: base-4.9.0.0 |
Defined in Data.Semigroup | |
newtype MVector s (Max a) | |
Defined in Data.Vector.Unboxed.Base | |
type Plain (Max a) Source # | |
Defined in Data.Array.Accelerate.Data.Semigroup | |
type Rep (Max a) | Since: base-4.9.0.0 |
Defined in Data.Semigroup | |
newtype Vector (Max a) | |
Defined in Data.Vector.Unboxed.Base |