1
1
mirror of https://github.com/github/semantic.git synced 2025-01-04 13:34:31 +03:00

📝 modifyModuleTable.

This commit is contained in:
Rob Rix 2018-03-12 15:35:09 -04:00
parent 76ba8963a9
commit 3639743e73

View File

@ -89,6 +89,7 @@ class Monad m => MonadModuleTable term value m | m -> term, m -> value where
-- | Run an action with a locally-modified table of unevaluated modules.
localModuleTable :: (ModuleTable term -> ModuleTable term) -> m a -> m a
-- | Update the evaluated module table.
modifyModuleTable :: MonadModuleTable term value m => (ModuleTable (EnvironmentFor value) -> ModuleTable (EnvironmentFor value)) -> m ()
modifyModuleTable f = do
table <- getModuleTable