desperately seeking RULES help

Don Stewart dons at galois.com
Mon Jun 9 18:47:02 EDT 2008


claus.reinke:
> >>nope!-) -fglasgow-exts is sufficient for the RULE to be parsed
> >>and applied in Lennart's code, -frewrite-rules doesn't seem to
> >>serve any noticable purpose.
> >
> >Well, if -O is on, -frewrite-rules is already on by default.
> >Try -fno-rewrite-rules with -O to turn them off specifically,
> 
> yep, see my note in the ticket about this confusion.
> 
> >or in ghci, -frewrite-rules can be used to help them fire even on
> >bytecode.
> 
> when i tried this earlier, the hpc ticks seemed to get in the way?

HPC will break rules, yes. See:

    "-fhpc inteferes/prevents rewrite rules from firing"
    http://hackage.haskell.org/trac/ghc/ticket/2224

-- Don


More information about the Glasgow-haskell-users mailing list