delta-types-1.0.0.0: Delta types, also known as change actions.
Copyright© 2021-2023 IOHK 2024 Cardano Foundation
LicenseApache-2.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Delta.List

Description

Delta types for lists.

Synopsis

Documentation

newtype DeltaList a Source #

Delta type for lists where a list of elements is prepended.

Constructors

Append [a] 

Instances

Instances details
Ord a => Monoid (DeltaList a) Source # 
Instance details

Defined in Data.Delta.List

Ord a => Semigroup (DeltaList a) Source #

Remember that the semigroup instance is required to satisfy the following properties:

apply mempty = id
apply (d1 <> d2) = apply d1 . apply d2
Instance details

Defined in Data.Delta.List

Methods

(<>) :: DeltaList a -> DeltaList a -> DeltaList a #

sconcat :: NonEmpty (DeltaList a) -> DeltaList a #

stimes :: Integral b => b -> DeltaList a -> DeltaList a #

Show a => Show (DeltaList a) Source # 
Instance details

Defined in Data.Delta.List

Delta (DeltaList a) Source #
apply (Append xs) ys = xs ++ ys
Instance details

Defined in Data.Delta.List

Associated Types

type Base (DeltaList a) Source #

Methods

apply :: DeltaList a -> Base (DeltaList a) -> Base (DeltaList a) Source #

Eq a => Eq (DeltaList a) Source # 
Instance details

Defined in Data.Delta.List

Methods

(==) :: DeltaList a -> DeltaList a -> Bool #

(/=) :: DeltaList a -> DeltaList a -> Bool #

Ord a => Ord (DeltaList a) Source # 
Instance details

Defined in Data.Delta.List

type Base (DeltaList a) Source # 
Instance details

Defined in Data.Delta.List

type Base (DeltaList a) = [a]