File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
plugins/hls-tactics-plugin/src/Ide/Plugin/Tactic Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -279,9 +279,11 @@ dataConExTys = DataCon.dataConExTyVars
279
279
280
280
281
281
------------------------------------------------------------------------------
282
- -- | In GHC 8.8, sometimes patterns are wrapped in 'XPat'. It's not clear why,
283
- -- but if we don't remove these wrappers, many functions that operate on
284
- -- patterns fail to match.
282
+ -- | In GHC 8.8, sometimes patterns are wrapped in 'XPat'.
283
+ -- The nitty gritty details are explained at
284
+ -- https://blog.shaynefletcher.org/2020/03/ghc-haskell-pats-and-lpats.html
285
+ --
286
+ -- We need to remove these in order to succesfull find patterns.
285
287
unXPat :: Pat GhcPs -> Pat GhcPs
286
288
#if __GLASGOW_HASKELL__ == 808
287
289
unXPat (XPat (L _ pat)) = unXPat pat
You can’t perform that action at this time.
0 commit comments