cursor-0.3.0.0: Purely Functional Cursors

Safe HaskellNone
LanguageHaskell2010

Cursor.List

Documentation

data ListCursor a Source #

Constructors

ListCursor 

Fields

Instances
Functor ListCursor Source # 
Instance details

Defined in Cursor.List

Methods

fmap :: (a -> b) -> ListCursor a -> ListCursor b #

(<$) :: a -> ListCursor b -> ListCursor a #

Eq a => Eq (ListCursor a) Source # 
Instance details

Defined in Cursor.List

Methods

(==) :: ListCursor a -> ListCursor a -> Bool #

(/=) :: ListCursor a -> ListCursor a -> Bool #

Show a => Show (ListCursor a) Source # 
Instance details

Defined in Cursor.List

Generic (ListCursor a) Source # 
Instance details

Defined in Cursor.List

Associated Types

type Rep (ListCursor a) :: Type -> Type #

Methods

from :: ListCursor a -> Rep (ListCursor a) x #

to :: Rep (ListCursor a) x -> ListCursor a #

NFData a => NFData (ListCursor a) Source # 
Instance details

Defined in Cursor.List

Methods

rnf :: ListCursor a -> () #

Validity a => Validity (ListCursor a) Source # 
Instance details

Defined in Cursor.List

type Rep (ListCursor a) Source # 
Instance details

Defined in Cursor.List

type Rep (ListCursor a) = D1 (MetaData "ListCursor" "Cursor.List" "cursor-0.3.0.0-4Hn80vYAl979Qxk54M4vdL" False) (C1 (MetaCons "ListCursor" PrefixI True) (S1 (MetaSel (Just "listCursorPrev") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [a]) :*: S1 (MetaSel (Just "listCursorNext") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [a])))

traverseListCursor :: ([a] -> [a] -> f b) -> ListCursor a -> f b Source #

foldListCursor :: ([a] -> [a] -> b) -> ListCursor a -> b Source #