mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Reformat the signature for eval.
This commit is contained in:
parent
01c963069e
commit
f81384767a
@ -26,7 +26,13 @@ import Data.Text (Text)
|
||||
import GHC.Stack
|
||||
import Prelude hiding (fail)
|
||||
|
||||
eval :: (Carrier sig m, Member (Reader Loc) sig, MonadFail m) => Analysis address value m -> (Term Core User -> m value) -> Term Core User -> m value
|
||||
eval :: ( Carrier sig m
|
||||
, Member (Reader Loc) sig
|
||||
, MonadFail m
|
||||
)
|
||||
=> Analysis address value m
|
||||
-> (Term Core User -> m value)
|
||||
-> (Term Core User -> m value)
|
||||
eval Analysis{..} eval = \case
|
||||
Var n -> lookupEnv' n >>= deref' n
|
||||
Term c -> case c of
|
||||
|
Loading…
Reference in New Issue
Block a user