mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +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 GHC.Stack
|
||||||
import Prelude hiding (fail)
|
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
|
eval Analysis{..} eval = \case
|
||||||
Var n -> lookupEnv' n >>= deref' n
|
Var n -> lookupEnv' n >>= deref' n
|
||||||
Term c -> case c of
|
Term c -> case c of
|
||||||
|
Loading…
Reference in New Issue
Block a user