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
  • #11051
Closed
Open
Created 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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking