mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Recur through annotations.
This commit is contained in:
parent
aa1e36bc93
commit
9eae24ecc1
@ -197,7 +197,7 @@ annWith callStack = maybe id (fmap send . Ann) (stackLoc callStack)
|
||||
stripAnnotations :: (Member Core sig, Syntax sig) => Term sig a -> Term sig a
|
||||
stripAnnotations (Var v) = Var v
|
||||
stripAnnotations (Term t)
|
||||
| Just c <- prj t, Ann _ b <- c = b
|
||||
| Just c <- prj t, Ann _ b <- c = stripAnnotations b
|
||||
| otherwise = Term (hmap stripAnnotations t)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user