Copyright | (C) CSIRO 2017-2018 |
---|---|
License | BSD3 |
Maintainer | George Wilson <george.wilson@data61.csiro.au> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- data NonEmptyVector a = NonEmptyVector a (Vector a)
- fromNel :: NonEmpty a -> NonEmptyVector a
- toNel :: NonEmptyVector a -> NonEmpty a
- headNev :: Lens' (NonEmptyVector a) a
- tailNev :: Lens' (NonEmptyVector a) (Vector a)
Documentation
data NonEmptyVector a Source #
A non-empty value of Vector
NonEmptyVector a (Vector a) |
Functor NonEmptyVector Source # | |
Applicative NonEmptyVector Source # | |
Foldable NonEmptyVector Source # | |
Traversable NonEmptyVector Source # | |
Apply NonEmptyVector Source # | |
Traversable1 NonEmptyVector Source # | |
Foldable1 NonEmptyVector Source # | |
Eq a => Eq (NonEmptyVector a) Source # | |
Ord a => Ord (NonEmptyVector a) Source # | |
Show a => Show (NonEmptyVector a) Source # | |
Generic (NonEmptyVector a) Source # | |
Semigroup (NonEmptyVector a) Source # | |
NFData a => NFData (NonEmptyVector a) Source # | |
type Rep (NonEmptyVector a) Source # | |
fromNel :: NonEmpty a -> NonEmptyVector a Source #
Convert a NonEmpty
list to a NonEmptyVector
toNel :: NonEmptyVector a -> NonEmpty a Source #
Convert a NonEmptyVector
to a NonEmpty
list
headNev :: Lens' (NonEmptyVector a) a Source #
Get or set the head of a NonEmptyVector
tailNev :: Lens' (NonEmptyVector a) (Vector a) Source #
Get or set the head of a NonEmptyVector