1
1
mirror of https://github.com/github/semantic.git synced 2025-01-01 11:46:14 +03:00

🔥 a redundant raiseEff.

This commit is contained in:
Rob Rix 2018-07-25 09:58:09 -04:00
parent 863c2774eb
commit 98320e4e15

View File

@ -104,7 +104,7 @@ runFunction = interpret $ \case
withCurrentPackage packageInfo . withCurrentModule moduleInfo $ do withCurrentPackage packageInfo . withCurrentModule moduleInfo $ do
bindings <- foldr (\ (name, addr) rest -> Env.insert name addr <$> rest) (pure lowerBound) (zip names params) bindings <- foldr (\ (name, addr) rest -> Env.insert name addr <$> rest) (pure lowerBound) (zip names params)
let fnEnv = Env.push env let fnEnv = Env.push env
withEnv fnEnv (catchReturn (bindAll bindings *> raiseEff (coerce body))) withEnv fnEnv (catchReturn (bindAll bindings *> coerce body))
_ -> throwValueError (CallError op) >>= box _ -> throwValueError (CallError op) >>= box