Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data Progress step fail done Source #
A type to represent the unfolding of an expensive long running calculation that may fail. We may get intermediate steps before the final result which may be used to indicate progress and/or logging messages.
Instances
Monoid fail => Alternative (Progress step fail) Source # | |
Applicative (Progress step fail) Source # | |
Defined in Distribution.Solver.Types.Progress pure :: a -> Progress step fail a # (<*>) :: Progress step fail (a -> b) -> Progress step fail a -> Progress step fail b # liftA2 :: (a -> b -> c) -> Progress step fail a -> Progress step fail b -> Progress step fail c # (*>) :: Progress step fail a -> Progress step fail b -> Progress step fail b # (<*) :: Progress step fail a -> Progress step fail b -> Progress step fail a # | |
Functor (Progress step fail) Source # | |
Monad (Progress step fail) Source # | |
foldProgress :: (step -> a -> a) -> (fail -> a) -> (done -> a) -> Progress step fail done -> a Source #