コンパイルすると、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
これが何を意味するのか、どうすれば修正できるのか、何か考えはありますか?
乾杯。