proton-0.0.4
Safe HaskellNone
LanguageHaskell2010

Examples.Loop

Documentation

accum :: forall p next state. (Monoid state, Strong p, Cochoice p) => (next -> Maybe (next, state)) -> Optic p next state next next Source #

while :: (Monoid state, Strong p, Cochoice p) => (t -> Bool) -> (t -> state) -> Optic p t state t t Source #