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,360
    • Issues 5,360
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 573
    • Merge requests 573
  • 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
  • #11786
Closed
Open
Issue created Apr 04, 2016 by Simon Peyton Jones@simonpjDeveloper

Need -fno-print-explicit-runtime-reps to work on IfaceType, else RuntimeRep leaks

After #11549 (closed), we are suppose not to show RuntimeRep to users, when -fno-print-explicit-runtime-reps is on. But we do:

:info ($)
Prelude> :i ($)
($) ::  forall (r :: GHC.Types.RuntimeRep) a (b :: TYPE r).
        (a -> b) -> a -> b
  	-- Defined in ‘GHC.Base’

This happens because the runtime-rep-suppression happens on Type, but for :info we use pprInfo which uses tyThingToIfaceDecl and then prints it. And tyThingToIfaceDecl doesn't know about the -fprint-explicit-runtime-reps flag; and I'd like to keep it that way.

We want to change pprType to convert to IfaceType and then print anyway.

I suppose that this means that the pretty-printer for IfaceType needs to know about this runtime-rep suppression. That's a bit tiresome, but not impossible, especially since there is no shadowing to worry about.

Trac metadata
Trac field Value
Version 7.10.3
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