1
1
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:
Rob Rix 2018-05-01 10:48:15 -04:00
parent 15c4be2a38
commit adce4b2b31

View File

@ -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)