It is an Iteratee
that can produce partial results.
It r a consumes a feed of rs and produces as on the way. New values
can be fed using simplifyIt, the current (partial or final) result is
extracted using extract.
let keepIt a = Pure alet replaceIt a = It a replaceIt
extract (keepIt 0)0
extract (replaceIt 0)0
extract (simplifyIt (keepIt 0) 5)0
extract (simplifyIt (replaceIt 0) 5)5
Instances7Profunctor, Monad, Functor, Applicative, Comonad, ComonadApply, …
Profunctor ItDefined in trifecta-2.1.4 · Text.Trifecta.Util.ItMonad (It r)Defined in trifecta-2.1.4 · Text.Trifecta.Util.ItFunctor (It r)Defined in trifecta-2.1.4 · Text.Trifecta.Util.ItApplicative (It r)Defined in trifecta-2.1.4 · Text.Trifecta.Util.ItComonad (It r)Defined in trifecta-2.1.4 · Text.Trifecta.Util.ItIt is a cofree comonad
ComonadApply (It r)Defined in trifecta-2.1.4 · Text.Trifecta.Util.ItShow a => Show (It r a)Defined in trifecta-2.1.4 · Text.Trifecta.Util.It