我在编译时收到来自 GHC 的警告:
警告:“pats”的此绑定会隐藏“match_ignore_ancs”定义中的现有绑定
这是功能:
match_ignore_ancs (TextPat _ c) (Text t) = c t
match_ignore_ancs (TextPat _ _) (Element _ _ _) = False
match_ignore_ancs (ElemPat _ _ _) (Text t) = False
match_ignore_ancs (ElemPat _ c pats) (Element t avs xs) =
c t avs && match_pats pats xs
知道这意味着什么以及如何解决吗?
干杯。