mirror of
https://github.com/github/semantic.git
synced 2024-12-30 02:14:20 +03:00
Generalize the definition of localModuleTable.
This commit is contained in:
parent
15c4be2a38
commit
adce4b2b31
@ -313,7 +313,7 @@ askModuleTable :: MonadEvaluator location term value effects m => m effects (Mod
|
||||
askModuleTable = raise ask
|
||||
|
||||
-- | Run an action with a locally-modified table of unevaluated modules.
|
||||
localModuleTable :: MonadEvaluator location term value effects m => (ModuleTable [Module term] -> ModuleTable [Module term]) -> m effects a -> m effects a
|
||||
localModuleTable :: (Effectful m, Member (Reader (ModuleTable [Module term])) effects) => (ModuleTable [Module term] -> ModuleTable [Module term]) -> m effects a -> m effects a
|
||||
localModuleTable f = raiseHandler (local f)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user