ghc-lib-parser-9.14.1.20251220: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Data.SizedSeq

# Documentation

data SizedSeq a #

Constructors

SizedSeq !Word [a] |

#### Instances

Instances details

Functor SizedSeq # |
Instance details Defined in GHC.Data.SizedSeq Methods fmap :: (a -> b) -> SizedSeq a -> SizedSeq b # (<$) :: a -> SizedSeq b -> SizedSeq a #
Foldable SizedSeq # |
Instance details Defined in GHC.Data.SizedSeq Methods fold :: Monoid m => SizedSeq m -> m # foldMap :: Monoid m => (a -> m) -> SizedSeq a -> m # foldMap' :: Monoid m => (a -> m) -> SizedSeq a -> m # foldr :: (a -> b -> b) -> b -> SizedSeq a -> b # foldr' :: (a -> b -> b) -> b -> SizedSeq a -> b # foldl :: (b -> a -> b) -> b -> SizedSeq a -> b # foldl' :: (b -> a -> b) -> b -> SizedSeq a -> b # foldr1 :: (a -> a -> a) -> SizedSeq a -> a # foldl1 :: (a -> a -> a) -> SizedSeq a -> a # toList :: SizedSeq a -> [a] # null :: SizedSeq a -> Bool # length :: SizedSeq a -> Int # elem :: Eq a => a -> SizedSeq a -> Bool # maximum :: Ord a => SizedSeq a -> a # minimum :: Ord a => SizedSeq a -> a # sum :: Num a => SizedSeq a -> a # product :: Num a => SizedSeq a -> a #
Traversable SizedSeq # |
Instance details Defined in GHC.Data.SizedSeq Methods traverse :: Applicative f => (a -> f b) -> SizedSeq a -> f (SizedSeq b) # sequenceA :: Applicative f => SizedSeq (f a) -> f (SizedSeq a) # mapM :: Monad m => (a -> m b) -> SizedSeq a -> m (SizedSeq b) # sequence :: Monad m => SizedSeq (m a) -> m (SizedSeq a) #
Binary a => Binary (SizedSeq a) # |
Instance details Defined in GHC.Data.SizedSeq Methods put :: SizedSeq a -> Put # get :: Get (SizedSeq a) # putList :: [SizedSeq a] -> Put #
NFData a => NFData (SizedSeq a) # |
Instance details Defined in GHC.Data.SizedSeq Methods rnf :: SizedSeq a -> () #
Generic (SizedSeq a) # |
Instance details Defined in GHC.Data.SizedSeq Associated Types
type Rep (SizedSeq a) |
Instance details Defined in GHC.Data.SizedSeq type Rep (SizedSeq a) = D1 ('MetaData "SizedSeq" "GHC.Data.SizedSeq" "ghc-lib-parser-9.14.1.20251220-PtFrlL5ZJN3Qo3Axa3c6X" 'False) (C1 ('MetaCons "SizedSeq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a])))
Methods from :: SizedSeq a -> Rep (SizedSeq a) x # to :: Rep (SizedSeq a) x -> SizedSeq a #
Show a => Show (SizedSeq a) # |
Instance details Defined in GHC.Data.SizedSeq Methods showsPrec :: Int -> SizedSeq a -> ShowS # show :: SizedSeq a -> String # showList :: [SizedSeq a] -> ShowS #
type Rep (SizedSeq a) # |
Instance details Defined in GHC.Data.SizedSeq type Rep (SizedSeq a) = D1 ('MetaData "SizedSeq" "GHC.Data.SizedSeq" "ghc-lib-parser-9.14.1.20251220-PtFrlL5ZJN3Qo3Axa3c6X" 'False) (C1 ('MetaCons "SizedSeq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a])))

emptySS :: SizedSeq a #

addToSS :: SizedSeq a -> a -> SizedSeq a #

addListToSS :: SizedSeq a -> [a] -> SizedSeq a #

ssElts :: SizedSeq a -> [a] #

sizeSS :: SizedSeq a -> Word #