Module

Data.Lens.Barlow.Helpers

Package
purescript-barlow-lens
Repository
sigma-andex/purescript-barlow-lens

#view Source

view :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget a) s t a b => s -> a

#preview Source

preview :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget (First a)) s t a b => s -> Maybe a

#foldOf Source

foldOf :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget a) s t a b => s -> a

#over Source

over :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses Function s t a b => (a -> b) -> s -> t

#set Source

set :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses Function s t a b => b -> s -> t

#toArrayOf Source

toArrayOf :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget (Endo Function (List a))) s t a b => s -> Array a

#toListOf Source

toListOf :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget (Endo Function (List a))) s t a b => s -> List a

#firstOf Source

firstOf :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget (First a)) s t a b => s -> Maybe a

#lastOf Source

lastOf :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget (Last a)) s t a b => s -> Maybe a

#lengthOf Source

lengthOf :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget (Additive Int)) s t a b => s -> Int

#has Source

has :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget (Disj Boolean)) s t a b => s -> Boolean

true if the path focuses on at least one value.

#hasn't Source

hasn't :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Forget (Conj Boolean)) s t a b => s -> Boolean

true if the path focuses on no value at all.

#traverseOf Source

traverseOf :: forall f s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses (Star f) s t a b => (a -> f b) -> s -> f t

#iover Source

iover :: forall i s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructIndexed lenses Function i s t a b => (i -> a -> b) -> s -> t

#itoListOf Source

itoListOf :: forall i s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructIndexed lenses (Forget (Endo Function (List (Tuple i a)))) i s t a b => s -> List (Tuple i a)

#ifoldMapOf Source

ifoldMapOf :: forall r i s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructIndexed lenses (Forget r) i s t a b => (i -> a -> r) -> s -> r

#itraverseOf Source

itraverseOf :: forall f i s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructIndexed lenses (Star f) i s t a b => (i -> a -> f b) -> s -> f t