mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Rearrange stripAnnotations’ type parameters.
This commit is contained in:
parent
8880278961
commit
6681639dd5
@ -236,7 +236,7 @@ annWith :: (Carrier sig m, Member (Ann Path) sig, Member (Ann Span) sig) => Call
|
||||
annWith callStack = maybe id (\ (path, span) -> annAt path . annAt span) (stackLoc callStack)
|
||||
|
||||
|
||||
stripAnnotations :: (HFunctor sig, forall g . Functor g => Functor (sig g)) => Term (Ann ann :+: sig) a -> Term sig a
|
||||
stripAnnotations :: forall ann a sig . (HFunctor sig, forall g . Functor g => Functor (sig g)) => Term (Ann ann :+: sig) a -> Term sig a
|
||||
stripAnnotations (Var v) = Var v
|
||||
stripAnnotations (Term (L (Ann _ b))) = stripAnnotations b
|
||||
stripAnnotations (Term (R b)) = Term (hmap stripAnnotations b)
|
||||
|
Loading…
Reference in New Issue
Block a user