mirror of
https://github.com/github/semantic.git
synced 2025-01-04 13:34:31 +03:00
📝 modifyModuleTable.
This commit is contained in:
parent
76ba8963a9
commit
3639743e73
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user