mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Align the comments.
This commit is contained in:
parent
418f7536c4
commit
00549ae24b
@ -73,14 +73,13 @@ deriving instance Member NonDetEff effects => MonadNonDet (Evaluating term value
|
|||||||
|
|
||||||
-- | Effects necessary for evaluating (whether concrete or abstract).
|
-- | Effects necessary for evaluating (whether concrete or abstract).
|
||||||
type EvaluatingEffects term value (effects :: [* -> *])
|
type EvaluatingEffects term value (effects :: [* -> *])
|
||||||
= '[ Fail -- Failure with an error message
|
= '[ Fail -- Failure with an error message
|
||||||
, Reader (EnvironmentFor value) -- Local environment (e.g. binding over a closure)
|
, Reader (EnvironmentFor value) -- Local environment (e.g. binding over a closure)
|
||||||
, State (EnvironmentFor value) -- Global (imperative) environment
|
, State (EnvironmentFor value) -- Global (imperative) environment
|
||||||
, State (StoreFor value) -- The heap
|
, State (StoreFor value) -- The heap
|
||||||
, Reader (ModuleTable term) -- Cache of unevaluated modules
|
, Reader (ModuleTable term) -- Cache of unevaluated modules
|
||||||
, State (ModuleTable (EnvironmentFor value)) -- Cache of evaluated modules
|
, State (ModuleTable (EnvironmentFor value)) -- Cache of evaluated modules
|
||||||
|
, State (Map Name (Name, Maybe (Address (LocationFor value) value))) -- Set of exports
|
||||||
, State (Map Name (Name, Maybe (Address (LocationFor value) value))) -- Set of exports
|
|
||||||
]
|
]
|
||||||
|
|
||||||
instance Members '[State (Map Name (Name, Maybe (Address (LocationFor value) value))), Reader (EnvironmentFor value), State (EnvironmentFor value)] effects => MonadEnvironment value (Evaluating term value effects) where
|
instance Members '[State (Map Name (Name, Maybe (Address (LocationFor value) value))), Reader (EnvironmentFor value), State (EnvironmentFor value)] effects => MonadEnvironment value (Evaluating term value effects) where
|
||||||
|
Loading…
Reference in New Issue
Block a user