vector-instances-3.4: Orphan Instances for 'Data.Vector'

Copyright(c) Edward Kmett 2010
LicenseBSD3
Maintainerekmett@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Data.Vector.Instances

Contents

Description

 

Orphan instances

Keyed Vector Source # 

Methods

mapWithKey :: (Key Vector -> a -> b) -> Vector a -> Vector b #

Zip Vector Source # 

Methods

zipWith :: (a -> b -> c) -> Vector a -> Vector b -> Vector c #

zip :: Vector a -> Vector b -> Vector (a, b) #

zap :: Vector (a -> b) -> Vector a -> Vector b #

ZipWithKey Vector Source # 

Methods

zipWithKey :: (Key Vector -> a -> b -> c) -> Vector a -> Vector b -> Vector c #

zapWithKey :: Vector (Key Vector -> a -> b) -> Vector a -> Vector b #

Indexable Vector Source # 

Methods

index :: Vector a -> Key Vector -> a #

Lookup Vector Source # 

Methods

lookup :: Key Vector -> Vector a -> Maybe a #

Adjustable Vector Source # 

Methods

adjust :: (a -> a) -> Key Vector -> Vector a -> Vector a #

replace :: Key Vector -> a -> Vector a -> Vector a #

FoldableWithKey Vector Source # 

Methods

toKeyedList :: Vector a -> [(Key Vector, a)] #

foldMapWithKey :: Monoid m => (Key Vector -> a -> m) -> Vector a -> m #

foldrWithKey :: (Key Vector -> a -> b -> b) -> b -> Vector a -> b #

foldlWithKey :: (b -> Key Vector -> a -> b) -> b -> Vector a -> b #

TraversableWithKey Vector Source # 

Methods

traverseWithKey :: Applicative f => (Key Vector -> a -> f b) -> Vector a -> f (Vector b) #

mapWithKeyM :: Monad m => (Key Vector -> a -> m b) -> Vector a -> m (Vector b) #

Pointed Vector Source # 

Methods

point :: a -> Vector a #

Plus Vector Source # 

Methods

zero :: Vector a #

Alt Vector Source # 

Methods

(<!>) :: Vector a -> Vector a -> Vector a #

some :: Applicative Vector => Vector a -> Vector [a] #

many :: Applicative Vector => Vector a -> Vector [a] #

Apply Vector Source # 

Methods

(<.>) :: Vector (a -> b) -> Vector a -> Vector b #

(.>) :: Vector a -> Vector b -> Vector b #

(<.) :: Vector a -> Vector b -> Vector a #

Bind Vector Source # 

Methods

(>>-) :: Vector a -> (a -> Vector b) -> Vector b #

join :: Vector (Vector a) -> Vector a #

Extend Vector Source # 

Methods

duplicated :: Vector a -> Vector (Vector a) #

extended :: (Vector a -> b) -> Vector a -> Vector b #

Hashable a => Hashable (Vector a) Source # 

Methods

hashWithSalt :: Int -> Vector a -> Int #

hash :: Vector a -> Int #

(Storable a, Hashable a) => Hashable (Vector a) Source # 

Methods

hashWithSalt :: Int -> Vector a -> Int #

hash :: Vector a -> Int #

(Unbox a, Hashable a) => Hashable (Vector a) Source # 

Methods

hashWithSalt :: Int -> Vector a -> Int #

hash :: Vector a -> Int #

(Prim a, Hashable a) => Hashable (Vector a) Source # 

Methods

hashWithSalt :: Int -> Vector a -> Int #

hash :: Vector a -> Int #