mirror of
https://github.com/github/semantic.git
synced 2024-12-15 01:51:39 +03:00
Add a resolve method to Evaluatable with a (bad) default definition.
This commit is contained in:
parent
adffd6b9c4
commit
f59cdd394b
@ -77,6 +77,12 @@ class (Show1 constr, Foldable constr) => Evaluatable constr where
|
|||||||
v <- throwUnspecializedError $ UnspecializedError ("Eval unspecialized for " <> liftShowsPrec (const (const id)) (const id) 0 expr "")
|
v <- throwUnspecializedError $ UnspecializedError ("Eval unspecialized for " <> liftShowsPrec (const (const id)) (const id) 0 expr "")
|
||||||
rvalBox v
|
rvalBox v
|
||||||
|
|
||||||
|
resolve :: ( Carrier sig m
|
||||||
|
)
|
||||||
|
=> (term -> Evaluator term address value m value)
|
||||||
|
-> (constr term -> Evaluator term address value m address)
|
||||||
|
resolve _ = undefined
|
||||||
|
|
||||||
|
|
||||||
traceResolve :: (Show a, Show b, Member Trace sig, Carrier sig m) => a -> b -> Evaluator term address value m ()
|
traceResolve :: (Show a, Show b, Member Trace sig, Carrier sig m) => a -> b -> Evaluator term address value m ()
|
||||||
traceResolve name path = trace ("resolved " <> show name <> " -> " <> show path)
|
traceResolve name path = trace ("resolved " <> show name <> " -> " <> show path)
|
||||||
|
Loading…
Reference in New Issue
Block a user