zeolite-lang-0.24.0.1: Zeolite is a statically-typed, general-purpose programming language.
Safe HaskellSafe
LanguageHaskell2010

Base.Mergeable

Documentation

class Mergeable a where Source #

Methods

mergeAny :: Foldable f => f a -> a Source #

mergeAll :: Foldable f => f a -> a Source #

Instances

Instances details
Mergeable Bool Source # 
Instance details

Defined in Base.Mergeable

Methods

mergeAny :: Foldable f => f Bool -> Bool Source #

mergeAll :: Foldable f => f Bool -> Bool Source #

(Eq a, Ord a) => Mergeable (GeneralType a) Source # 
Instance details

Defined in Base.GeneralType

Mergeable (MergeTree a) Source # 
Instance details

Defined in Base.MergeTree

Methods

mergeAny :: Foldable f => f (MergeTree a) -> MergeTree a Source #

mergeAll :: Foldable f => f (MergeTree a) -> MergeTree a Source #

(Ord k, Mergeable a) => Mergeable (Map k a) Source # 
Instance details

Defined in Base.Mergeable

Methods

mergeAny :: Foldable f => f (Map k a) -> Map k a Source #

mergeAll :: Foldable f => f (Map k a) -> Map k a Source #

class (Bounded a, Mergeable a) => PreserveMerge a where Source #

Associated Types

type T a :: * Source #

Methods

convertMerge :: Mergeable b => (T a -> b) -> a -> b Source #

Instances

Instances details
(Eq a, Ord a) => PreserveMerge (GeneralType a) Source # 
Instance details

Defined in Base.GeneralType

Associated Types

type T (GeneralType a) Source #

Methods

convertMerge :: Mergeable b => (T (GeneralType a) -> b) -> GeneralType a -> b Source #

PreserveMerge (MergeTree a) Source # 
Instance details

Defined in Base.MergeTree

Associated Types

type T (MergeTree a) Source #

Methods

convertMerge :: Mergeable b => (T (MergeTree a) -> b) -> MergeTree a -> b Source #

(<||>) :: Mergeable a => a -> a -> a infixl 2 Source #

(<&&>) :: Mergeable a => a -> a -> a infixl 2 Source #