| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Set.NonEmpty
Synopsis
- data NonEmptySet a
- fromFoldable ∷ (Foldable f, Ord a) ⇒ f a → Maybe (NonEmptySet a)
- fromSet ∷ Set a → Maybe (NonEmptySet a)
- singleton ∷ a → NonEmptySet a
- toList ∷ NonEmptySet a → [a]
- toSet ∷ NonEmptySet a → Set a
Documentation
data NonEmptySet a Source #
Instances
| (Typeable a, Ord a, DecCBOR a) ⇒ DecCBOR (NonEmptySet a) Source # | |
Defined in Data.Set.NonEmpty | |
| EncCBOR a ⇒ EncCBOR (NonEmptySet a) Source # | |
Defined in Data.Set.NonEmpty Methods encCBOR ∷ NonEmptySet a → Encoding Source # | |
| NFData a ⇒ NFData (NonEmptySet a) Source # | |
Defined in Data.Set.NonEmpty Methods rnf ∷ NonEmptySet a → () # | |
| Show a ⇒ Show (NonEmptySet a) Source # | |
Defined in Data.Set.NonEmpty Methods showsPrec ∷ Int → NonEmptySet a → ShowS # show ∷ NonEmptySet a → String # showList ∷ [NonEmptySet a] → ShowS # | |
| Eq a ⇒ Eq (NonEmptySet a) Source # | |
Defined in Data.Set.NonEmpty | |
| NoThunks a ⇒ NoThunks (NonEmptySet a) Source # | |
Defined in Data.Set.NonEmpty | |
fromFoldable ∷ (Foldable f, Ord a) ⇒ f a → Maybe (NonEmptySet a) Source #
\(O(n \log n)\).
singleton ∷ a → NonEmptySet a Source #
\(O(1)\).
toList ∷ NonEmptySet a → [a] Source #
\(O(n)\).
toSet ∷ NonEmptySet a → Set a Source #
\(O(1)\).