id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
3703	-ddump-rules does not list all rules in effect	nomeata		"Hi,

the attached code has a function breakOn which calls ""break (c==)"" from Bytestring. That function has a rewrite rule, rewriting it to ""breakChar c"". I’d expect ""ghc -ddump-rules"" to tell me that this function was called, but that is not the case:

{{{
$ ghc -O -ddump-rules --make breakOn.hs 
[1 of 1] Compiling Main             ( breakOn.hs, breakOn.o )

==================== Transformation rules ====================
Local rules

Imported rules



==================== Top-level specialisations ====================


Linking breakOn ...
}}}

But in fact, the rule does fire, as this excert from ""ghc -ddump-inlinings"" shows:

{{{
Considering inlining
    bytestring-0.9.1.4:Data.ByteString.Char8.breakChar{v r3m} [gid] active: False
                                                                    arg infos [False]
                                                                    interesting continuation BoringCtxt
                                                                    is value: True
                                                                    is cheap: True
                                                                    guidance IF_ARGS 2 [0 0] 4 6
                                                                    ANSWER = NO
}}}
}}}"	bug	closed	normal		Compiler	6.10.4	fixed			Linux	x86_64 (amd64)	None/Unknown					
