diff options
-rw-r--r-- | events/src/Events/Types.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/events/src/Events/Types.hs b/events/src/Events/Types.hs index 3414b68..22faf94 100644 --- a/events/src/Events/Types.hs +++ b/events/src/Events/Types.hs | |||
@@ -78,7 +78,7 @@ type Eval m a = StateT ObjCtx (ListT (StateT EvalCtx m)) a | |||
78 | evaluate :: MonadFix m => Eval m () -> m [Object] | 78 | evaluate :: MonadFix m => Eval m () -> m [Object] |
79 | evaluate x = catMaybes <$> mfix x' | 79 | evaluate x = catMaybes <$> mfix x' |
80 | where | 80 | where |
81 | x' = evalStateT (ListT.toList (objCtx <$> execStateT x def)) . flip (set ctxEvents) def . catMaybes | 81 | x' = evalStateT (ListT.toReverseList (objCtx <$> execStateT x def)) . flip (set ctxEvents) def . catMaybes |
82 | 82 | ||
83 | instance MonadState s m => MonadState s (ListT m) where | 83 | instance MonadState s m => MonadState s (ListT m) where |
84 | get = lift get | 84 | get = lift get |