basement-0.0.7: Foundation scrap box of array & string

LicenseBSD-style
MaintainerFoundation
Stabilityexperimental
Portabilityportable
Safe HaskellNone
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

IsList c => IsList (NonEmpty c) Source # 

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)] #

Eq a => Eq (NonEmpty a) Source # 

Methods

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

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

Show a => Show (NonEmpty a) Source # 

Methods

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

show :: NonEmpty a -> String #

showList :: [NonEmpty a] -> ShowS #

type Item (NonEmpty c) Source # 
type Item (NonEmpty c) = Item c