sliceofpy-1.0.0: Python-ish slicing traversals for Haskell.

Safe HaskellSafe
LanguageHaskell2010

Data.Slice.Lens.Internal

Documentation

class Slice s where Source #

Methods

start :: s -> Maybe Int Source #

end :: s -> Maybe Int Source #

step :: s -> Maybe Int Source #

Instances
Slice String Source # 
Instance details

Defined in Data.Slice.Lens.Internal

Slice (Int, Int, Int) Source # 
Instance details

Defined in Data.Slice.Lens.Internal

Methods

start :: (Int, Int, Int) -> Maybe Int Source #

end :: (Int, Int, Int) -> Maybe Int Source #

step :: (Int, Int, Int) -> Maybe Int Source #

Slice (Maybe Int, Maybe Int, Maybe Int) Source # 
Instance details

Defined in Data.Slice.Lens.Internal

rsliced :: (Slice s, Traversable t) => s -> Traversal' (t a) a Source #

slice :: (Slice s, Traversable t, Applicative f, Reversing (t a)) => s -> (a -> f a) -> t a -> f (t a) Source #

slice' :: (Traversable t, Applicative f, Reversing (t a)) => Maybe Int -> Maybe Int -> Maybe Int -> (a -> f a) -> t a -> f (t a) Source #