Skip to content

GitLab

  • Menu
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 4,870
    • Issues 4,870
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 453
    • Merge requests 453
  • 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 Compiler
  • GHCGHC
  • Issues
  • #21432
Closed
Open
Created Apr 26, 2022 by Georgi Lyubenov@googleson78

Is ddump-rn-ast broken?

Summary

-ddump-rn-ast doesn't seem to be producing any output

Steps to reproduce

With the following file

{-# LANGUAGE NamedFieldPuns #-}

data Thing a = MkThing {field :: a}

f :: Thing a -> a
f MkThing {field} = field

doing ghc -ddump-rn file.hs I get

[1 of 1] Compiling Main             ( sf.hs, sf.o )

==================== Renamer ====================
Main.f :: Main.Thing a_agv -> a_agv
Main.f Main.MkThing {field} = field_agw

data Main.Thing a_agu = Main.MkThing {field :: a_agu}

However, doing ghc -ddump-rn-ast file.hs I get

[1 of 1] Compiling Main             ( sf.hs, sf.o )

Is this a bug, or is there a hole in my understanding of what the -ast variant should print?

Environment

  • GHC version used: 9.0.2
Edited Apr 26, 2022 by Georgi Lyubenov
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking