| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Data.NonEmpty.Class
- class Empty f where
- class Cons f where
- class Snoc f where
- snocDefault :: (Cons f, Traversable f) => f a -> a -> f a
- class ViewL f where
- class ViewR f where
- class (ViewL f, ViewR f) => View f
- viewRDefault :: (ViewL f, Traversable f) => f a -> Maybe (f a, a)
- class Singleton f where
- class Append f where
- class Functor f => Zip f where
- zipWith3 :: Zip f => (a -> b -> c -> d) -> f a -> f b -> f c -> f d
- zipWith4 :: Zip f => (a -> b -> c -> d -> e) -> f a -> f b -> f c -> f d -> f e
- zip :: Zip f => f a -> f b -> f (a, b)
- zip3 :: Zip f => f a -> f b -> f c -> f (a, b, c)
- zip4 :: Zip f => f a -> f b -> f c -> f d -> f (a, b, c, d)
- class Repeat f where
- class Repeat f => Iterate f where
- class Sort f where
- sortDefault :: (Ord a, SortBy f) => f a -> f a
- class Sort f => SortBy f where
- class Reverse f where
- class Show f where
- class Arbitrary f where
- class NFData f where
Documentation
Minimal complete definition
Minimal complete definition
Minimal complete definition
snocDefault :: (Cons f, Traversable f) => f a -> a -> f a #
Minimal complete definition
Minimal complete definition
viewRDefault :: (ViewL f, Traversable f) => f a -> Maybe (f a, a) #
Minimal complete definition
Minimal complete definition
class Functor f => Zip f where #
It must hold:
fmap f xs = zipWith (\x _ -> f x) xs xs = zipWith (\_ x -> f x) xs xs
Minimal complete definition
Minimal complete definition
Methods
Create a container with as many copies as possible of a given value.
That is, for a container with fixed size n,
the call repeat x will generate a container with n copies of x.
We need to distinguish between Sort and SortBy,
since there is an instance Sort Set
but there cannot be an instance SortBy Set.
Minimal complete definition
Minimal complete definition
Minimal complete definition
Minimal complete definition