Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 66c0bff

Browse files
committed
Instantiate.
1 parent a45c029 commit 66c0bff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

semantic-core/src/Analysis/Eval.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ eval Analysis{..} eval = \case
3838
Term c -> case c of
3939
Let n -> alloc n >>= bind n >> unit
4040
a :>> b -> eval a >> eval b
41-
Lam (Ignored n) b -> abstract eval n (fromScope (incr (const (pure n)) id) b)
41+
Lam (Ignored n) b -> abstract eval n (instantiate1 (pure n) b)
4242
f :$ a -> do
4343
f' <- eval f
4444
a' <- eval a

semantic-core/src/Data/Core/Pretty.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ prettyCore style = run . runReader @Prec 0 . go
105105

106106
-- Annotations are not pretty-printed, as it lowers the signal/noise ratio too profoundly.
107107
Ann _ c -> go c
108-
where bind (Ignored x) f = (,) x <$> go (fromScope (incr (const (pure x)) id) f)
108+
where bind (Ignored x) f = (,) x <$> go (instantiate1 (pure x) f)
109109
lambda = case style of
110110
Unicode -> symbol "λ"
111111
Ascii -> symbol "\\"

0 commit comments

Comments
 (0)