[Git][ghc/ghc][wip/move-warnDs] Fix unused pattern match warnings

Sebastian Graf gitlab at gitlab.haskell.org
Sun Jun 16 09:31:46 UTC 2019



Sebastian Graf pushed to branch wip/move-warnDs at Glasgow Haskell Compiler / GHC


Commits:
2f0bbff2 by Sebastian Graf at 2019-06-16T09:31:34Z
Fix unused pattern match warnings

- - - - -


1 changed file:

- compiler/deSugar/Match.hs


Changes:

=====================================
compiler/deSugar/Match.hs
=====================================
@@ -469,7 +469,7 @@ tidy1 _ _ (SumPat tys pat alt arity)
 tidy1 _ _ (LitPat _ lit) = return (idDsWrapper, tidyLitPat lit)
 
 -- NPats: we *might* be able to replace these w/ a simpler form
-tidy1 _ o (NPat ty (dL->L _ lit at OverLit { ol_val = v }) mb_neg eq)
+tidy1 _ _ (NPat ty (dL->L _ lit at OverLit{}) mb_neg eq)
   = return (idDsWrapper, tidyNPat lit mb_neg eq ty)
 
 -- Everything else goes through unchanged...



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/2f0bbff230da8a37a7e31335750a227a1c9ca7f0

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/2f0bbff230da8a37a7e31335750a227a1c9ca7f0
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190616/7c8f7e48/attachment.html>


More information about the ghc-commits mailing list