| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Clingo.Internal.Statistics
Description
A module providing direct, but memory managed and somewhat safe, access to
the Clingo statistics interface. The preferred way to interface with the
statistics is the tree based interface in Statistics. This interface
exists solely for users who want to provide their own abstraction, without
having to reimplement memory management for the raw versions in
Statistics.
- data Statistics s
- data StatisticsType
- pattern StatsEmpty :: StatisticsType
- pattern StatsValue :: StatisticsType
- pattern StatsArray :: StatisticsType
- pattern StatsMap :: StatisticsType
- data SKey
- statisticsRoot :: (MonadIO m, MonadThrow m) => Statistics s -> m SKey
- statisticsType :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> m StatisticsType
- statisticsArraySize :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> m Natural
- statisticsArrayAt :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> Natural -> m SKey
- statisticsMapSize :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> m Natural
- statisticsMapSubkeyName :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> Natural -> m Text
- statisticsMapAt :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> Text -> m SKey
- statisticsValueGet :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> m Double
Documentation
data Statistics s Source #
data StatisticsType Source #
pattern StatsEmpty :: StatisticsType Source #
pattern StatsValue :: StatisticsType Source #
pattern StatsArray :: StatisticsType Source #
pattern StatsMap :: StatisticsType Source #
statisticsRoot :: (MonadIO m, MonadThrow m) => Statistics s -> m SKey Source #
statisticsType :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> m StatisticsType Source #
Array Access
statisticsArraySize :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> m Natural Source #
statisticsArrayAt :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> Natural -> m SKey Source #
Map Access
statisticsMapSize :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> m Natural Source #
statisticsMapSubkeyName :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> Natural -> m Text Source #
statisticsMapAt :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> Text -> m SKey Source #
Value Access
statisticsValueGet :: (MonadIO m, MonadThrow m) => Statistics s -> SKey -> m Double Source #