base-compat-0.8.1: A compatibility layer for base

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Foldable.Compat

Synopsis

Documentation

length :: Foldable t => t a -> Int Source

Returns the size/length of a finite structure as an Int. The default implementation is optimized for structures that are similar to cons-lists, because there is no general way to do better.

null :: Foldable t => t a -> Bool Source

Test whether the structure is empty. The default implementation is optimized for structures that are similar to cons-lists, because there is no general way to do better.