length +base

length :: [a] -> Int
base Prelude, base Data.List
O(n). length returns the length of a finite list as an Int. It is an instance of the more general Data.List.genericLength, the result type of which may be any kind of number.
lengthArray0 :: (Storable a, Eq a) => a -> Ptr a -> IO Int
base Foreign.Marshal.Array
Return the number of elements in an array, excluding the terminator
genericLength :: Num i => [b] -> i
base Data.List
The genericLength function is an overloaded version of length. In particular, instead of returning an Int, it returns any type which is an instance of Num. It is, however, less efficient than length.