mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +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