ptera-core-0.1.0.0: A parser generator
Safe HaskellNone
LanguageHaskell2010

Language.Parser.Ptera.Data.Alignable.Array

Documentation

type T = Array Source #

newtype Array n a Source #

Constructors

Array (Array Int a) 

Instances

Instances details
Functor (Array n) Source # 
Instance details

Defined in Language.Parser.Ptera.Data.Alignable.Array

Methods

fmap :: (a -> b) -> Array n a -> Array n b #

(<$) :: a -> Array n b -> Array n a #

Foldable (Array n) Source # 
Instance details

Defined in Language.Parser.Ptera.Data.Alignable.Array

Methods

fold :: Monoid m => Array n m -> m #

foldMap :: Monoid m => (a -> m) -> Array n a -> m #

foldMap' :: Monoid m => (a -> m) -> Array n a -> m #

foldr :: (a -> b -> b) -> b -> Array n a -> b #

foldr' :: (a -> b -> b) -> b -> Array n a -> b #

foldl :: (b -> a -> b) -> b -> Array n a -> b #

foldl' :: (b -> a -> b) -> b -> Array n a -> b #

foldr1 :: (a -> a -> a) -> Array n a -> a #

foldl1 :: (a -> a -> a) -> Array n a -> a #

toList :: Array n a -> [a] #

null :: Array n a -> Bool #

length :: Array n a -> Int #

elem :: Eq a => a -> Array n a -> Bool #

maximum :: Ord a => Array n a -> a #

minimum :: Ord a => Array n a -> a #

sum :: Num a => Array n a -> a #

product :: Num a => Array n a -> a #

Eq a => Eq (Array n a) Source # 
Instance details

Defined in Language.Parser.Ptera.Data.Alignable.Array

Methods

(==) :: Array n a -> Array n a -> Bool #

(/=) :: Array n a -> Array n a -> Bool #

Show a => Show (Array n a) Source # 
Instance details

Defined in Language.Parser.Ptera.Data.Alignable.Array

Methods

showsPrec :: Int -> Array n a -> ShowS #

show :: Array n a -> String #

showList :: [Array n a] -> ShowS #

fromTotalMap :: T n => n -> T n a -> Array n a Source #

fromList :: forall n a. T n => [a] -> Array n a Source #

mapWithIx :: T n => (n -> a -> a) -> Array n a -> Array n a Source #

index :: forall n a. T n => Array n a -> n -> Maybe a Source #

forceIndex :: forall n a. T n => Array n a -> n -> a Source #

assocs :: forall n a. T n => Array n a -> [(n, a)] Source #