summaryrefslogtreecommitdiff
path: root/testsuite/tests/plugins
diff options
context:
space:
mode:
authorromes <rodrigo.m.mesquita@gmail.com>2022-03-13 18:06:04 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-03-14 11:36:39 -0400
commit135888ddc6adc99126b84194a5da3d8736324132 (patch)
tree70cb2a1d13e5959d802fb4d1fc15f4bcada3e7a9 /testsuite/tests/plugins
parent97db789eec7a49c3ec30a83666720221c26d8f9e (diff)
downloadhaskell-135888ddc6adc99126b84194a5da3d8736324132.tar.gz
TTG Pull AbsBinds and ABExport out of the main AST
AbsBinds and ABExport both depended on the typechecker, and were thus removed from the main AST Expr. CollectPass now has a new function `collectXXHsBindsLR` used for the new HsBinds extension point Bumped haddock submodule to work with AST changes. The removed Notes from Language.Haskell.Syntax.Binds were duplicated (and not referenced) and the copies in GHC.Hs.Binds are kept (and referenced there). (See #19252)
Diffstat (limited to 'testsuite/tests/plugins')
-rw-r--r--testsuite/tests/plugins/simple-plugin/Simple/RemovePlugin.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/plugins/simple-plugin/Simple/RemovePlugin.hs b/testsuite/tests/plugins/simple-plugin/Simple/RemovePlugin.hs
index dfbed9e490..a56fc3cf4f 100644
--- a/testsuite/tests/plugins/simple-plugin/Simple/RemovePlugin.hs
+++ b/testsuite/tests/plugins/simple-plugin/Simple/RemovePlugin.hs
@@ -48,7 +48,7 @@ typecheckPlugin [name, "typecheck"] _ tc
}
where notNamedAs name (L _ FunBind { fun_id = L _ fid })
= occNameString (getOccName fid) /= name
- notNamedAs name (L _ AbsBinds { abs_binds = bnds })
+ notNamedAs name (L _ (XHsBindsLR (AbsBinds { abs_binds = bnds })))
= all (notNamedAs name) bnds
notNamedAs _ (L _ b) = True
typecheckPlugin _ _ tc = return tc