error-message-index icon indicating copy to clipboard operation
error-message-index copied to clipboard

DsRuleIgnoredDueToConstructor -> 828

Open PPKFS opened this issue 2 years ago • 1 comments

PPKFS avatar Jun 13 '22 17:06 PPKFS

module T13290 where

data Foo = Bar Int Char | Baz Char

{-# RULES
"BarBaz" Bar 0 'a' = Baz 'b'
 #-}

results in

T13290.hs:6:1: warning: [GHC-00828]
    A constructor, Bar, appears as outermost match in RULE lhs.
    This rule will be ignored.

This warning was introduced in this issue: https://gitlab.haskell.org/ghc/ghc/-/issues/13290

BinderDavid avatar Sep 03 '23 17:09 BinderDavid