Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,247
    • Issues 5,247
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 577
    • Merge requests 577
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #4397
Closed
Open
Issue created Oct 14, 2010 by daniel.is.fischer@trac-daniel.is.fischer

RULES for Class ops don't fire in HEAD

For the attached programme, compiled with 7.1.20101010, the rule truncate/Double->Int doesn't fire, resulting in

-248407781
1
const 0    took   0.004000s
-248407781
truncate   took   0.940059s
-248407781
double2Int took   0.032002s

i.e. truncate is not rewritten to double2Int, although it is given an explicit type signature (same behaviour without a type signature).

-ddump-rule-firings lists

Rule fired: Class op truncate

among (if I haven't miscounted) 41 Class op xxx rules.

That behaviour keeps the fix for #2271 (closed) from working and is a severe regression for #1434 (closed) .

IMO it's a show-stopper.

Trac metadata
Trac field Value
Version 7.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking