| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.DList.NonEmpty.Unsafe
Description
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 <> nedlfromNonEmpty (1 :| [2])
- newtype NonEmptyDList a = NEDL {}
Documentation
newtype NonEmptyDList a #
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
Instances
| Monad NonEmptyDList # | |
| Functor NonEmptyDList # | |
| Applicative NonEmptyDList # | |
| Foldable NonEmptyDList # | |
| Traversable NonEmptyDList # | |
| Traversable1 NonEmptyDList # | |
| Foldable1 NonEmptyDList # | |
| Alt NonEmptyDList # | |
| Apply NonEmptyDList # | |
| Bind NonEmptyDList # | |
| IsList (NonEmptyDList a) # | |
| Eq a => Eq (NonEmptyDList a) # | |
| Ord a => Ord (NonEmptyDList a) # | |
| Read a => Read (NonEmptyDList a) # | |
| Show a => Show (NonEmptyDList a) # | |
| (~) * a Char => IsString (NonEmptyDList a) # | |
| Semigroup (NonEmptyDList a) # | |
| NFData a => NFData (NonEmptyDList a) # | |
| type Item (NonEmptyDList a) # | |