Cabal-2.0.0.2: 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

Semigroup (DList a) Source # 

Methods

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

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

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

Monoid (DList a) Source # 

Methods

mempty :: DList a #

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

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

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

singleton :: a -> DList a Source #

Make DList with containing single element.

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