mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
📝 withModules.
This commit is contained in:
parent
a640fa0de3
commit
02dbaf964f
@ -60,6 +60,7 @@ evaluateTerm :: MonadAnalysis term value m => term -> m value
|
|||||||
evaluateTerm = foldSubterms analyzeTerm
|
evaluateTerm = foldSubterms analyzeTerm
|
||||||
|
|
||||||
|
|
||||||
|
-- | Run an action with the a list of 'Module's available for imports.
|
||||||
withModules :: MonadAnalysis term value m => [Module term] -> m a -> m a
|
withModules :: MonadAnalysis term value m => [Module term] -> m a -> m a
|
||||||
withModules = localModuleTable . const . ModuleTable.fromList
|
withModules = localModuleTable . const . ModuleTable.fromList
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user