Cabal-2.4.0.1: A framework for packaging Haskell software
Copyright(c) Ben Gamari 2015-2019
LicenseBSD3
Maintainercabal-dev@haskell.org
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.Compat.DList

Description

A very simple difference list.

Synopsis

Documentation

data DList a Source #

Difference list.

Instances

Instances details
Semigroup (DList a) Source # 
Instance details

Defined in Distribution.Compat.DList

Methods

(<>) :: DList a -> DList a -> DList a Source #

sconcat :: NonEmpty (DList a) -> DList a Source #

stimes :: Integral b => b -> DList a -> DList a Source #

Monoid (DList a) Source # 
Instance details

Defined in Distribution.Compat.DList

Methods

mempty :: DList a Source #

mappend :: DList a -> DList a -> DList a Source #

mconcat :: [DList a] -> DList a Source #

runDList :: DList a -> [a] Source #

singleton :: a -> DList a Source #

Make DList with containing single element.

fromList :: [a] -> DList a Source #

toList :: DList a -> [a] Source #

snoc :: DList a -> a -> DList a Source #