Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exports the internal representation of NonEmptyDList
.
Use with care. It's very easy to break the safe interface:
>>>
let nedl = NEDL ((1 :|) . map (+1))
>>>
nedl <> nedl
fromNonEmpty (1 :| [2])
- newtype NonEmptyDList a = NEDL {}
Documentation
newtype NonEmptyDList a Source #
A difference list is a function that, given a list, returns the original contents of the difference list prepended to the given list.
Implemented as a newtype over [a] ->
.NonEmpty
a
Monad NonEmptyDList Source # | |
Functor NonEmptyDList Source # | |
Applicative NonEmptyDList Source # | |
Foldable NonEmptyDList Source # | |
Traversable NonEmptyDList Source # | |
Traversable1 NonEmptyDList Source # | |
Alt NonEmptyDList Source # | |
Apply NonEmptyDList Source # | |
Bind NonEmptyDList Source # | |
Foldable1 NonEmptyDList Source # | |
IsList (NonEmptyDList a) Source # | |
Eq a => Eq (NonEmptyDList a) Source # | |
Ord a => Ord (NonEmptyDList a) Source # | |
Read a => Read (NonEmptyDList a) Source # | |
Show a => Show (NonEmptyDList a) Source # | |
(~) * a Char => IsString (NonEmptyDList a) Source # | |
Semigroup (NonEmptyDList a) Source # | |
NFData a => NFData (NonEmptyDList a) Source # | |
type Item (NonEmptyDList a) Source # | |