mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
export sends Export.
This commit is contained in:
parent
da79d76872
commit
293d76a32f
@ -32,8 +32,8 @@ getEnv :: Member (Env address) effects => Evaluator address value effects (Envir
|
||||
getEnv = send GetEnv
|
||||
|
||||
-- | Add an export to the global export state.
|
||||
export :: Member (State (Exports address)) effects => Name -> Name -> Maybe address -> Evaluator address value effects ()
|
||||
export name alias = modify' . insert name alias
|
||||
export :: Member (Env address) effects => Name -> Name -> Maybe address -> Evaluator address value effects ()
|
||||
export name alias addr = send (Export name alias addr)
|
||||
|
||||
|
||||
-- | Look a 'Name' up in the current environment, trying the default environment if no value is found.
|
||||
|
Loading…
Reference in New Issue
Block a user