cardano-data-0.1.0.0: Specialized data for Cardano project
Safe Haskell Safe-Inferred
Language Haskell2010

Data.CanonicalMaps

Synopsis

Documentation

canonicalInsert :: ( Ord k, CanonicalZero a) => (a -> a -> a) -> k -> a -> Map k a -> Map k a Source #

data Map k a Source #

A Map from keys k to values a .

The Semigroup operation for Map is union , which prefers values from the left operand. If m1 maps a key k to a value a1 , and m2 maps the same key to a different value a2 , then their union m1 <> m2 maps k to a1 .

Instances

Instances details
Bifoldable Map

Since: containers-0.6.3.1

Instance details

Defined in Data.Map.Internal

Methods

bifold :: Monoid m => Map m m -> m Source #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> Map a b -> m Source #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> Map a b -> c Source #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> Map a b -> c Source #

Eq2 Map

Since: containers-0.5.9

Instance details

Defined in Data.Map.Internal

Methods

liftEq2 :: (a -> b -> Bool ) -> (c -> d -> Bool ) -> Map a c -> Map b d -> Bool Source #

Ord2 Map

Since: containers-0.5.9

Instance details

Defined in Data.Map.Internal

Methods

liftCompare2 :: (a -> b -> Ordering ) -> (c -> d -> Ordering ) -> Map a c -> Map b d -> Ordering Source #

Show2 Map

Since: containers-0.5.9

Instance details

Defined in Data.Map.Internal

Methods

liftShowsPrec2 :: ( Int -> a -> ShowS ) -> ([a] -> ShowS ) -> ( Int -> b -> ShowS ) -> ([b] -> ShowS ) -> Int -> Map a b -> ShowS Source #

liftShowList2 :: ( Int -> a -> ShowS ) -> ([a] -> ShowS ) -> ( Int -> b -> ShowS ) -> ([b] -> ShowS ) -> [ Map a b] -> ShowS Source #

Hashable2 Map

Since: hashable-1.3.4.0

Instance details

Defined in Data.Hashable.Class

Functor ( Map k)
Instance details

Defined in Data.Map.Internal

Methods

fmap :: (a -> b) -> Map k a -> Map k b Source #

(<$) :: a -> Map k b -> Map k a Source #

Foldable ( Map k)

Folds in order of increasing key.

Instance details

Defined in Data.Map.Internal

Methods

fold :: Monoid m => Map k m -> m Source #

foldMap :: Monoid m => (a -> m) -> Map k a -> m Source #

foldMap' :: Monoid m => (a -> m) -> Map k a -> m Source #

foldr :: (a -> b -> b) -> b -> Map k a -> b Source #

foldr' :: (a -> b -> b) -> b -> Map k a -> b Source #

foldl :: (b -> a -> b) -> b -> Map k a -> b Source #

foldl' :: (b -> a -> b) -> b -> Map k a -> b Source #

foldr1 :: (a -> a -> a) -> Map k a -> a Source #

foldl1 :: (a -> a -> a) -> Map k a -> a Source #

toList :: Map k a -> [a] Source #

null :: Map k a -> Bool Source #

length :: Map k a -> Int Source #

elem :: Eq a => a -> Map k a -> Bool Source #

maximum :: Ord a => Map k a -> a Source #

minimum :: Ord a => Map k a -> a Source #

sum :: Num a => Map k a -> a Source #

product :: Num a => Map k a -> a Source #

Traversable ( Map k)

Traverses in order of increasing key.

Instance details

Defined in Data.Map.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Map k a -> f ( Map k b) Source #

sequenceA :: Applicative f => Map k (f a) -> f ( Map k a) Source #

mapM :: Monad m => (a -> m b) -> Map k a -> m ( Map k b) Source #

sequence :: Monad m => Map k (m a) -> m ( Map k a) Source #

Eq k => Eq1 ( Map k)

Since: containers-0.5.9

Instance details

Defined in Data.Map.Internal

Methods

liftEq :: (a -> b -> Bool ) -> Map k a -> Map k b -> Bool Source #

Ord k => Ord1 ( Map k)

Since: containers-0.5.9

Instance details

Defined in Data.Map.Internal

( Ord k, Read k) => Read1 ( Map k)

Since: containers-0.5.9

Instance details

Defined in Data.Map.Internal

Show k => Show1 ( Map k)

Since: containers-0.5.9

Instance details

Defined in Data.Map.Internal

Hashable k => Hashable1 ( Map k)

Since: hashable-1.3.4.0

Instance details

Defined in Data.Hashable.Class

Ord k => IsList ( Map k v)

Since: containers-0.5.6.2

Instance details

Defined in Data.Map.Internal

Associated Types

type Item ( Map k v) Source #

( Eq k, Eq a) => Eq ( Map k a)
Instance details

Defined in Data.Map.Internal

( Data k, Data a, Ord k) => Data ( Map k a)
Instance details

Defined in Data.Map.Internal

Methods

gfoldl :: ( forall d b. Data d => c (d -> b) -> d -> c b) -> ( forall g. g -> c g) -> Map k a -> c ( Map k a) Source #

gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c ( Map k a) Source #

toConstr :: Map k a -> Constr Source #

dataTypeOf :: Map k a -> DataType Source #

dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c ( Map k a)) Source #

dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c ( Map k a)) Source #

gmapT :: ( forall b. Data b => b -> b) -> Map k a -> Map k a Source #

gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> Map k a -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> Map k a -> r Source #

gmapQ :: ( forall d. Data d => d -> u) -> Map k a -> [u] Source #

gmapQi :: Int -> ( forall d. Data d => d -> u) -> Map k a -> u Source #

gmapM :: Monad m => ( forall d. Data d => d -> m d) -> Map k a -> m ( Map k a) Source #

gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> Map k a -> m ( Map k a) Source #

gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> Map k a -> m ( Map k a) Source #

( Ord k, Ord v) => Ord ( Map k v)
Instance details

Defined in Data.Map.Internal

( Ord k, Read k, Read e) => Read ( Map k e)
Instance details

Defined in Data.Map.Internal

( Show k, Show a) => Show ( Map k a)
Instance details

Defined in Data.Map.Internal

Ord k => Semigroup ( Map k v)
Instance details

Defined in Data.Map.Internal

Ord k => Monoid ( Map k v)
Instance details

Defined in Data.Map.Internal

( Hashable k, Hashable v) => Hashable ( Map k v)

Since: hashable-1.3.4.0

Instance details

Defined in Data.Hashable.Class

( Ord k, ToCBOR k, ToCBOR v) => ToCBOR ( Map k v)
Instance details

Defined in Cardano.Binary.ToCBOR

( Ord k, FromCBOR k, FromCBOR v) => FromCBOR ( Map k v)
Instance details

Defined in Cardano.Binary.FromCBOR

( NFData k, NFData a) => NFData ( Map k a)
Instance details

Defined in Data.Map.Internal

Methods

rnf :: Map k a -> () Source #

( NoThunks k, NoThunks v) => NoThunks ( Map k v)
Instance details

Defined in NoThunks.Class

( Eq k, Eq v, Ord k, CanonicalZero v) => CanonicalZero ( Map k v) Source #
Instance details

Defined in Data.CanonicalMaps

( Ord k, FromCBOR k, FromCBOR v) => FromSharedCBOR ( Map k v) Source #
Instance details

Defined in Data.Sharing

Associated Types

type Share ( Map k v) Source #

type Item ( Map k v)
Instance details

Defined in Data.Map.Internal

type Item ( Map k v) = (k, v)
type Share ( Map k v) Source #
Instance details

Defined in Data.Sharing