Skip to content

Commit

Permalink
TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Nov 28, 2024
1 parent 9f51aa7 commit 998cd8f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ loopHoisting md = mapT (const (umapL go)) md
go :: BinderList Binder -> Node -> Node
go bl node = case node of
NApp {} -> case h of
-- TODO: variables
NIdt Ident {..} -> goApp bl _identSymbol h 0 args
_ -> node
where
-- TODO: consider only fully applied
(h, args) = unfoldApps node
_ ->
node
Expand Down Expand Up @@ -57,7 +59,7 @@ loopHoisting md = mapT (const (umapL go)) md
extract :: (Member (State [Node]) r) => Level -> Node -> Sem r Recur
extract n node
| not (isImmediate md node || isLambda node)
&& isFullyApplied md node
&& isFullyApplied md node -- TODO: variables
&& null boundVars = do
k <- length <$> get @[Node]
modify' ((shift (-(n + bindersNum)) node) :)
Expand Down

0 comments on commit 998cd8f

Please sign in to comment.