Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- chunksOf :: Int -> SList a -> SList $ SList a
- sListEmpty :: SList a
- sListFromList :: [a] -> SList a
- sListToList :: SList a -> [a]
- type SString = SList Char
- newtype SList a = SList {
- unSList :: Slist a
- sListCons :: a -> SList a -> SList a
- sListSnoc :: ListLike a (Item a) => a -> Item a -> a
- sListHead :: SList a -> a
- sListUncons :: SList a -> Maybe (a, SList a)
- sListLast :: SList a -> a
- sListTail :: SList a -> SList a
- sListInit :: SList a -> SList a
- sListReverse :: SList a -> SList a
- sListIntersperse :: a -> SList a -> SList a
- sListReplicate :: Int -> a -> SList a
- sListFind :: (a -> Bool) -> SList a -> Maybe a
- sListIndex :: SList a -> Int -> a
- sListUnsafeAt :: Int -> SList a -> a
- sListSortBy :: (a -> a -> Ordering) -> SList a -> SList a
Documentation
sListEmpty :: SList a #
Construction
sListFromList :: [a] -> SList a #
sListToList :: SList a -> [a] #
DeConstruction
Instances
Monad SList # | |
Functor SList # | |
IsString SString # | |
Defined in HelVM.HelIO.Collections.SList fromString :: String -> SString # | |
Applicative SList # | |
Foldable SList # | |
Defined in HelVM.HelIO.Collections.SList fold :: Monoid m => SList m -> m # foldMap :: Monoid m => (a -> m) -> SList a -> m # foldMap' :: Monoid m => (a -> m) -> SList a -> m # foldr :: (a -> b -> b) -> b -> SList a -> b # foldr' :: (a -> b -> b) -> b -> SList a -> b # foldl :: (b -> a -> b) -> b -> SList a -> b # foldl' :: (b -> a -> b) -> b -> SList a -> b # foldr1 :: (a -> a -> a) -> SList a -> a # foldl1 :: (a -> a -> a) -> SList a -> a # elem :: Eq a => a -> SList a -> Bool # maximum :: Ord a => SList a -> a # minimum :: Ord a => SList a -> a # | |
Traversable SList # | |
IsList (SList a) # | |
Eq a => Eq (SList a) # | |
Ord a => Ord (SList a) # | |
Defined in HelVM.HelIO.Collections.SList | |
Read a => Read (SList a) # | |
Show a => Show (SList a) # | Standard instances |
Semigroup (SList a) # | |
Monoid (SList a) # | |
GrowingAppend (SList a) # | SemiSequence instances |
Defined in HelVM.HelIO.Collections.SList | |
MonoFoldable (SList a) # | |
Defined in HelVM.HelIO.Collections.SList ofoldMap :: Monoid m => (Element (SList a) -> m) -> SList a -> m ofoldr :: (Element (SList a) -> b -> b) -> b -> SList a -> b ofoldl' :: (a0 -> Element (SList a) -> a0) -> a0 -> SList a -> a0 otoList :: SList a -> [Element (SList a)] oall :: (Element (SList a) -> Bool) -> SList a -> Bool oany :: (Element (SList a) -> Bool) -> SList a -> Bool ocompareLength :: Integral i => SList a -> i -> Ordering otraverse_ :: Applicative f => (Element (SList a) -> f b) -> SList a -> f () ofor_ :: Applicative f => SList a -> (Element (SList a) -> f b) -> f () omapM_ :: Applicative m => (Element (SList a) -> m ()) -> SList a -> m () oforM_ :: Applicative m => SList a -> (Element (SList a) -> m ()) -> m () ofoldlM :: Monad m => (a0 -> Element (SList a) -> m a0) -> a0 -> SList a -> m a0 ofoldMap1Ex :: Semigroup m => (Element (SList a) -> m) -> SList a -> m ofoldr1Ex :: (Element (SList a) -> Element (SList a) -> Element (SList a)) -> SList a -> Element (SList a) ofoldl1Ex' :: (Element (SList a) -> Element (SList a) -> Element (SList a)) -> SList a -> Element (SList a) headEx :: SList a -> Element (SList a) lastEx :: SList a -> Element (SList a) unsafeHead :: SList a -> Element (SList a) unsafeLast :: SList a -> Element (SList a) maximumByEx :: (Element (SList a) -> Element (SList a) -> Ordering) -> SList a -> Element (SList a) minimumByEx :: (Element (SList a) -> Element (SList a) -> Ordering) -> SList a -> Element (SList a) | |
MonoFunctor (SList a) # | |
MonoPointed (SList a) # | IsSequence instances |
Defined in HelVM.HelIO.Collections.SList | |
MonoTraversable (SList a) # | |
Defined in HelVM.HelIO.Collections.SList | |
IsSequence (SList a) # | |
Defined in HelVM.HelIO.Collections.SList fromList :: [Element (SList a)] -> SList a lengthIndex :: SList a -> Index (SList a) break :: (Element (SList a) -> Bool) -> SList a -> (SList a, SList a) span :: (Element (SList a) -> Bool) -> SList a -> (SList a, SList a) dropWhile :: (Element (SList a) -> Bool) -> SList a -> SList a takeWhile :: (Element (SList a) -> Bool) -> SList a -> SList a splitAt :: Index (SList a) -> SList a -> (SList a, SList a) unsafeSplitAt :: Index (SList a) -> SList a -> (SList a, SList a) take :: Index (SList a) -> SList a -> SList a unsafeTake :: Index (SList a) -> SList a -> SList a drop :: Index (SList a) -> SList a -> SList a unsafeDrop :: Index (SList a) -> SList a -> SList a dropEnd :: Index (SList a) -> SList a -> SList a partition :: (Element (SList a) -> Bool) -> SList a -> (SList a, SList a) uncons :: SList a -> Maybe (Element (SList a), SList a) unsnoc :: SList a -> Maybe (SList a, Element (SList a)) filter :: (Element (SList a) -> Bool) -> SList a -> SList a filterM :: Monad m => (Element (SList a) -> m Bool) -> SList a -> m (SList a) replicate :: Index (SList a) -> Element (SList a) -> SList a replicateM :: Monad m => Index (SList a) -> m (Element (SList a)) -> m (SList a) groupBy :: (Element (SList a) -> Element (SList a) -> Bool) -> SList a -> [SList a] groupAllOn :: Eq b => (Element (SList a) -> b) -> SList a -> [SList a] subsequences :: SList a -> [SList a] permutations :: SList a -> [SList a] tailMay :: SList a -> Maybe (SList a) initMay :: SList a -> Maybe (SList a) unsafeTail :: SList a -> SList a unsafeInit :: SList a -> SList a index :: SList a -> Index (SList a) -> Maybe (Element (SList a)) indexEx :: SList a -> Index (SList a) -> Element (SList a) unsafeIndex :: SList a -> Index (SList a) -> Element (SList a) splitWhen :: (Element (SList a) -> Bool) -> SList a -> [SList a] | |
SemiSequence (SList a) # | |
Defined in HelVM.HelIO.Collections.SList type Index (SList a) | |
Default a => InsertDef (SList a) # | My instances |
Default a => InsertDef (SList a) a # | |
ListLike (SList a) a # | |
Defined in HelVM.HelIO.Collections.SList cons :: a -> SList a -> SList a snoc :: SList a -> a -> SList a append :: SList a -> SList a -> SList a uncons :: SList a -> Maybe (a, SList a) map :: ListLike full' item' => (a -> item') -> SList a -> full' rigidMap :: (a -> a) -> SList a -> SList a intersperse :: a -> SList a -> SList a concat :: ListLike full' (SList a) => full' -> SList a concatMap :: ListLike full' item' => (a -> full') -> SList a -> full' rigidConcatMap :: (a -> SList a) -> SList a -> SList a any :: (a -> Bool) -> SList a -> Bool all :: (a -> Bool) -> SList a -> Bool replicate :: Int -> a -> SList a take :: Int -> SList a -> SList a drop :: Int -> SList a -> SList a splitAt :: Int -> SList a -> (SList a, SList a) takeWhile :: (a -> Bool) -> SList a -> SList a dropWhile :: (a -> Bool) -> SList a -> SList a dropWhileEnd :: (a -> Bool) -> SList a -> SList a span :: (a -> Bool) -> SList a -> (SList a, SList a) break :: (a -> Bool) -> SList a -> (SList a, SList a) group :: (ListLike full' (SList a), Eq a) => SList a -> full' inits :: ListLike full' (SList a) => SList a -> full' tails :: ListLike full' (SList a) => SList a -> full' isPrefixOf :: SList a -> SList a -> Bool isSuffixOf :: SList a -> SList a -> Bool isInfixOf :: SList a -> SList a -> Bool stripPrefix :: SList a -> SList a -> Maybe (SList a) stripSuffix :: SList a -> SList a -> Maybe (SList a) notElem :: a -> SList a -> Bool find :: (a -> Bool) -> SList a -> Maybe a filter :: (a -> Bool) -> SList a -> SList a partition :: (a -> Bool) -> SList a -> (SList a, SList a) elemIndex :: a -> SList a -> Maybe Int elemIndices :: (Eq a, ListLike result Int) => a -> SList a -> result findIndex :: (a -> Bool) -> SList a -> Maybe Int findIndices :: ListLike result Int => (a -> Bool) -> SList a -> result sequence :: (Applicative m, ListLike fullinp (m a)) => fullinp -> m (SList a) mapM :: (Applicative m, ListLike full' item') => (a -> m item') -> SList a -> m full' rigidMapM :: Monad m => (a -> m a) -> SList a -> m (SList a) delete :: a -> SList a -> SList a deleteFirsts :: SList a -> SList a -> SList a union :: SList a -> SList a -> SList a intersect :: SList a -> SList a -> SList a insert :: a -> SList a -> SList a fromListLike :: ListLike full' a => SList a -> full' nubBy :: (a -> a -> Bool) -> SList a -> SList a deleteBy :: (a -> a -> Bool) -> a -> SList a -> SList a deleteFirstsBy :: (a -> a -> Bool) -> SList a -> SList a -> SList a unionBy :: (a -> a -> Bool) -> SList a -> SList a -> SList a intersectBy :: (a -> a -> Bool) -> SList a -> SList a -> SList a groupBy :: (ListLike full' (SList a), Eq a) => (a -> a -> Bool) -> SList a -> full' sortBy :: (a -> a -> Ordering) -> SList a -> SList a insertBy :: (a -> a -> Ordering) -> a -> SList a -> SList a genericLength :: Num a0 => SList a -> a0 genericTake :: Integral a0 => a0 -> SList a -> SList a genericDrop :: Integral a0 => a0 -> SList a -> SList a genericSplitAt :: Integral a0 => a0 -> SList a -> (SList a, SList a) genericReplicate :: Integral a0 => a0 -> a -> SList a | |
FoldableLL (SList a) a # | ListLike instances |
Defined in HelVM.HelIO.Collections.SList | |
type Item (SList a) # | |
Defined in HelVM.HelIO.Collections.SList | |
type Element (SList a) # | MonoFoldable instances |
Defined in HelVM.HelIO.Collections.SList type Element (SList a) = a | |
type Index (SList a) # | |
Defined in HelVM.HelIO.Collections.SList |
sListUncons :: SList a -> Maybe (a, SList a) #
sListReverse :: SList a -> SList a #
sListIntersperse :: a -> SList a -> SList a #
sListReplicate :: Int -> a -> SList a #
sListIndex :: SList a -> Int -> a #
sListUnsafeAt :: Int -> SList a -> a #
sListSortBy :: (a -> a -> Ordering) -> SList a -> SList a #