Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,393
    • Issues 4,393
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 379
    • Merge Requests 379
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #11051

Closed
Open
Opened Nov 02, 2015 by Ben Gamari@bgamari🐢Maintainer

GHCi with +t option set shows type representations

hvr reported this morning that defining a data type in GHCi with the show types (:set +t) option set results in additional unexpected output. For instance,

$ inplace/bin/ghc-stage2 --interactive
GHCi, version 7.11.20151101: http://www.haskell.org/ghc/  :? for help
Prelude> :set +t
Prelude> data Hi
$tcHi :: TyCon
$trModule :: Module
data Hi
Prelude>

The $tcHi and $trModule bindings are details of the Typeable implementation introduced in D1404 and should likely be hidden from the user.

This would be trivial to fix in InteractiveUI.printTypeOfNames except for the fact that we currently have no way to identify this sort of Name. In fact any knowledge that the name was generated appears to have been thrown away as early as OccName.mkTyConRepSysOcc.

Edited Mar 10, 2019 by Ben Gamari
Assignee
Assign to
8.0.1
Milestone
8.0.1 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#11051