Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/hls-tactics-plugin/src/Wingman/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import TysWiredIn (charTyCon, doubleTyCon, floatTyCon, intTyCon)
import Unify
import Unique
import Var
import Wingman.StaticPlugin (pattern MetaprogramSyntax)
import Wingman.Types


Expand Down Expand Up @@ -171,6 +172,7 @@ containsHole :: Data a => a -> Bool
containsHole x = not $ null $ listify (
\case
((HsVar _ (L _ name)) :: HsExpr GhcPs) -> isHole $ occName name
MetaprogramSyntax _ -> True
_ -> False
) x

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec = do
#if __GLASGOW_HASKELL__ >= 808
describe "beginMetaprogram" $ do
goldenTest BeginMetaprogram "" 1 7 "MetaBegin"
goldenTest BeginMetaprogram "" 1 9 "MetaBeginNoWildify"
#endif

describe "golden" $ do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
foo v = [wingman||]

2 changes: 2 additions & 0 deletions plugins/hls-tactics-plugin/test/golden/MetaBeginNoWildify.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
foo v = _