Safe Haskell | Safe-Inferred |
---|
Also known as a conc-list or a merge-list. In the ghc source it's called OrdList.
Documentation
data AppendList a Source #
Instances
Functor AppendList Source # | |
Defined in Util.AppendList fmap :: (a -> b) -> AppendList a -> AppendList b # (<$) :: a -> AppendList b -> AppendList a # | |
Monoid (AppendList a) Source # | |
Defined in Util.AppendList mempty :: AppendList a # mappend :: AppendList a -> AppendList a -> AppendList a # mconcat :: [AppendList a] -> AppendList a # | |
Semigroup (AppendList a) Source # | |
Defined in Util.AppendList (<>) :: AppendList a -> AppendList a -> AppendList a # sconcat :: NonEmpty (AppendList a) -> AppendList a # stimes :: Integral b => b -> AppendList a -> AppendList a # | |
Show a => Show (AppendList a) Source # | |
Defined in Util.AppendList showsPrec :: Int -> AppendList a -> ShowS # show :: AppendList a -> String # showList :: [AppendList a] -> ShowS # | |
Eq a => Eq (AppendList a) Source # | |
Defined in Util.AppendList (==) :: AppendList a -> AppendList a -> Bool # (/=) :: AppendList a -> AppendList a -> Bool # |
empty :: AppendList a Source #
singleton :: a -> AppendList a Source #
cons :: a -> AppendList a -> AppendList a Source #
snoc :: AppendList a -> a -> AppendList a Source #
append :: AppendList a -> AppendList a -> AppendList a Source #
fromList :: [a] -> AppendList a Source #
toList :: AppendList a -> [a] Source #
length :: AppendList a -> Int Source #
view :: AppendList a -> Maybe (a, AppendList a) Source #
head :: AppendList a -> Maybe a Source #
last :: AppendList a -> Maybe a Source #