Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data StatsTree v
- class AMVTree t where
- (>=>) :: Monad m => (a -> m b) -> (b -> m c) -> a -> m c
- fromStats :: NFData w => Statistics s -> (StatsTree Double -> Maybe w) -> Clingo s (Maybe w)
- fromStatsMany :: NFData w => Statistics s -> [StatsTree Double -> Maybe w] -> Clingo s [Maybe w]
- subStats :: NFData w => Statistics s -> (StatsTree Double -> Maybe (StatsTree w)) -> Clingo s (Maybe (StatsTree w))
Documentation
The polymorphic statistics tree.
Functor StatsTree Source # | |
Foldable StatsTree Source # | |
Traversable StatsTree Source # | |
AMVTree StatsTree Source # | |
Eq v => Eq (StatsTree v) Source # | |
Ord v => Ord (StatsTree v) Source # | |
Show v => Show (StatsTree v) Source # | |
Generic (StatsTree v) Source # | |
NFData v => NFData (StatsTree v) Source # | |
type Rep (StatsTree v) Source # | |
(>=>) :: Monad m => (a -> m b) -> (b -> m c) -> a -> m c infixr 1 #
Left-to-right Kleisli composition of monads.
fromStats :: NFData w => Statistics s -> (StatsTree Double -> Maybe w) -> Clingo s (Maybe w) Source #
Get a statistics value from the tree. If any lookup fails, the result will
be Nothing
. The tree will be traversed lazily, but the result is evaluated
before returning!
fromStatsMany :: NFData w => Statistics s -> [StatsTree Double -> Maybe w] -> Clingo s [Maybe w] Source #
Like fromTree
but supporting multiple paths.