mirror of
https://github.com/ocharles/weeder.git
synced 2024-11-30 06:45:37 +03:00
parent
c19775085d
commit
a05945bf77
@ -264,7 +264,8 @@ topLevelAnalysis n@Node{ nodeChildren } = do
|
|||||||
|
|
||||||
analyseBinding :: ( Alternative m, MonadState Analysis m ) => HieAST a -> m ()
|
analyseBinding :: ( Alternative m, MonadState Analysis m ) => HieAST a -> m ()
|
||||||
analyseBinding n@Node{ nodeSpan, sourcedNodeInfo } = do
|
analyseBinding n@Node{ nodeSpan, sourcedNodeInfo } = do
|
||||||
guard $ any (Set.member ("FunBind", "HsBindLR") . nodeAnnotations) $ getSourcedNodeInfo sourcedNodeInfo
|
let bindAnns = Set.fromList [("FunBind", "HsBindLR"), ("PatBind", "HsBindLR")]
|
||||||
|
guard $ any (not . Set.disjoint bindAnns . nodeAnnotations) $ getSourcedNodeInfo sourcedNodeInfo
|
||||||
|
|
||||||
for_ ( findDeclarations n ) \d -> do
|
for_ ( findDeclarations n ) \d -> do
|
||||||
define d nodeSpan
|
define d nodeSpan
|
||||||
|
Loading…
Reference in New Issue
Block a user