Skip to content

Commit

Permalink
Fix incomplete pattern warning in GHC 8.6+
Browse files Browse the repository at this point in the history
Reviewed By: watashi

Differential Revision: D20746466

fbshipit-source-id: 0b73898c57e5beba2de9271797efe0cd3716ba8a
  • Loading branch information
Andrew Farmer authored and facebook-github-bot committed Mar 30, 2020
1 parent 9c67651 commit 7113988
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Retrie/PatternMap/Instances.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1518,6 +1518,7 @@ instance PatternMap ForAllTyMap where
#if __GLASGOW_HASKELL__ < 806
mAlter env vs (L _ (KindedTyVar (L _ v) k):rest, ty) f m =
#else
mAlter _ _ (L _ (XTyVarBndr _):_,_) _ _ = error "XTyVarBndr"
mAlter env vs (L _ (KindedTyVar _ (L _ v) k):rest, ty) f m =
#endif
let
Expand All @@ -1537,6 +1538,7 @@ instance PatternMap ForAllTyMap where
#if __GLASGOW_HASKELL__ < 806
mMatch env (L _ (KindedTyVar (L _ v) k):rest, ty) =
#else
mMatch _ (L _ (XTyVarBndr _):_,_) = const []
mMatch env (L _ (KindedTyVar _ (L _ v) k):rest, ty) =
#endif
let env' = extendMatchEnv env [v]
Expand Down

0 comments on commit 7113988

Please sign in to comment.