Safe Haskell | None |
---|---|
Language | Haskell2010 |
Game.LambdaHack.Client.UI.MsgM
Description
Monadic operations on game messages.
Synopsis
- msgAddDuplicate :: (MonadClientUI m, MsgShared a) => a -> Text -> m Bool
- msgAddDistinct :: MonadClientUI m => MsgClassDistinct -> (Text, Text) -> m ()
- msgAdd :: (MonadClientUI m, MsgShared a) => a -> Text -> m ()
- msgLnAdd :: (MonadClientUI m, MsgShared a) => a -> Text -> m ()
- promptMainKeys :: MonadClientUI m => m ()
- recordHistory :: MonadClientUI m => m ()
Documentation
msgAddDuplicate :: (MonadClientUI m, MsgShared a) => a -> Text -> m Bool Source #
Add a shared message to the current report. Say if it was a duplicate.
msgAddDistinct :: MonadClientUI m => MsgClassDistinct -> (Text, Text) -> m () Source #
Add a message comprising of two different texts, one to show, the other to save to messages log, to the current report.
msgAdd :: (MonadClientUI m, MsgShared a) => a -> Text -> m () Source #
Add a message to the current report.
msgLnAdd :: (MonadClientUI m, MsgShared a) => a -> Text -> m () Source #
Add a message to the current report. End previously collected report, if any, with newline.
promptMainKeys :: MonadClientUI m => m () Source #
Add a prompt with basic keys description.
recordHistory :: MonadClientUI m => m () Source #
Store new report in the history and archive old report.