Copyright | (c) Donnacha Oisín Kidney 2021 |
---|---|
Maintainer | mail@doisinkidney.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
A Monus
for for maximums.
Documentation
A type which adds a lower bound to some ordered type.
Instances
Monad Max Source # | |
Functor Max Source # | |
MonadFix Max Source # | |
Defined in Data.Monus.Max | |
Applicative Max Source # | |
Foldable Max Source # | |
Defined in Data.Monus.Max 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 Source # | |
Arbitrary1 Max Source # | |
Defined in Data.Monus.Max liftArbitrary :: Gen a -> Gen (Max a) # liftShrink :: (a -> [a]) -> Max a -> [Max a] # | |
Eq1 Max Source # | |
Ord1 Max Source # | |
Defined in Data.Monus.Max | |
Read1 Max Source # | |
Show1 Max Source # | |
Alternative Max Source # | |
MonadPlus Max Source # | |
Eq a => Eq (Max a) Source # | |
Data a => Data (Max a) Source # | |
Defined in Data.Monus.Max 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 => Ord (Max a) Source # | |
Read a => Read (Max a) Source # | |
Show a => Show (Max a) Source # | |
Generic (Max a) Source # | |
Ord a => Semigroup (Max a) Source # | |
Ord a => Monoid (Max a) Source # | |
Arbitrary a => Arbitrary (Max a) Source # | |
NFData a => NFData (Max a) Source # | |
Defined in Data.Monus.Max | |
Ord a => Monus (Max a) Source # | |
type Rep (Max a) Source # | |
Defined in Data.Monus.Max type Rep (Max a) = D1 ('MetaData "Max" "Data.Monus.Max" "monus-weighted-search-0.2.0.0-inplace" 'False) (C1 ('MetaCons "Bot" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "In" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a))) |