Safe Haskell | None |
---|
Provides a monad that collects vocab during dungeon construction and reproduces it later.
- data Token
- newtype VocabT m a = Vocab {}
- class Monad m => MonadVocab m where
- lookupVocab :: String -> m Token
- insertVocab :: String -> (String -> Token) -> m ()
- vocabKnown :: String -> m Bool
Documentation
Algebraic type for primitive and complex tokens.
The vocab monad. Carries the currently noun vocab as its state.
class Monad m => MonadVocab m whereSource
Tyepclass for all vocab-memorizing monads.
lookupVocab :: String -> m TokenSource
Lookup a word and return its token.
insertVocab :: String -> (String -> Token) -> m ()Source
Learn a new word.
vocabKnown :: String -> m BoolSource
Check if a word is already known.
MonadVocab m0 => MonadVocab (CounterT m0) | |
MonadVocab m0 => MonadVocab (SplErrT m0) | |
MonadVocab m0 => MonadVocab (AtomStoreT m0) | |
Monad m => MonadVocab (VocabT m) | |
MonadVocab m0 => MonadVocab (DungeonT m0) | |
MonadVocab m0 => MonadVocab (PlayerT m0) | |
MonadVocab m0 => MonadVocab (ObjectT m0) | |
MonadVocab m0 => MonadVocab (RoomT m0) | |
MonadVocab m0 => MonadVocab (PlayerFilterT m0) | |
MonadVocab m0 => MonadVocab (StereoBuilderT m0) |