basement-0.0.16: Foundation scrap box of array & string
LicenseBSD-style
MaintainerFoundation
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Basement.NonEmpty

Description

A newtype wrapper around a non-empty Collection.

Synopsis

Documentation

newtype NonEmpty a Source #

NonEmpty property for any Collection

Constructors

NonEmpty 

Fields

Instances

Instances details
IsList c => IsList (NonEmpty c) Source # 
Instance details

Defined in Basement.NonEmpty

Associated Types

type Item (NonEmpty c) #

Methods

fromList :: [Item (NonEmpty c)] -> NonEmpty c #

fromListN :: Int -> [Item (NonEmpty c)] -> NonEmpty c #

toList :: NonEmpty c -> [Item (NonEmpty c)] #

Show a => Show (NonEmpty a) Source # 
Instance details

Defined in Basement.NonEmpty

Methods

showsPrec :: Int -> NonEmpty a -> ShowS #

show :: NonEmpty a -> String #

showList :: [NonEmpty a] -> ShowS #

Eq a => Eq (NonEmpty a) Source # 
Instance details

Defined in Basement.NonEmpty

Methods

(==) :: NonEmpty a -> NonEmpty a -> Bool #

(/=) :: NonEmpty a -> NonEmpty a -> Bool #

type Item (NonEmpty c) Source # 
Instance details

Defined in Basement.NonEmpty

type Item (NonEmpty c) = Item c