mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Note a FIXME.
This commit is contained in:
parent
ddceb039d2
commit
e07917555d
@ -188,7 +188,7 @@ foldScope k go h = Scope . go (k . fmap (go h)) . unScope
|
||||
|
||||
-- | Bind occurrences of a variable in a term, producing a term in which the variable is bound.
|
||||
bind :: (Applicative f, Eq a) => a -> f a -> Scope f a
|
||||
bind name = Scope . fmap (match name)
|
||||
bind name = Scope . fmap (match name) -- FIXME: succ as little of the expression as possible, cf https://twitter.com/ollfredo/status/1145776391826358273 — can this even be done generically?
|
||||
|
||||
-- | Substitute a term for the free variable in a given term, producing a closed term.
|
||||
instantiate :: Monad f => f a -> Scope f a -> f a
|
||||
|
Loading…
Reference in New Issue
Block a user