Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Log l c where
- class PureLog l c where
- newtype FromPure l c = FromPure (IORef (l c))
- data Logger l s
- getLog :: forall w c l. (Store (Storage c), Has w c, HasLog (Storage c) l, Log l c) => System w (l c)
- readIORef :: IORef a -> IO a
- data LVec1 l c
- data LVec2 l1 l2 c
- data LVec3 l1 l2 l3 c
- data EnumTable c
- byIndex :: EnumTable c -> Int -> System w (Slice c)
- byEnum :: Enum c => EnumTable c -> c -> System w (Slice c)
Types and classes
A Log is a PureLog with mutable state.
class PureLog l c where Source #
A PureLog is a piece of state l c
that is updated when components c
are written or destroyed.
Note that l :: * -> *
FromPure turns a PureLog into a Log
A Logger l
of some store updates its Log l
with the writes and deletes to store s
getLog :: forall w c l. (Store (Storage c), Has w c, HasLog (Storage c) l, Log l c) => System w (l c) Source #
Produces the log indicated by the return type.
Composite Log consisting of 2 Logs
EnumTable
Hashtable that maintains buckets of entities whose fromEnum c
produces the same value