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,249
    • Issues 5,249
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 581
    • Merge requests 581
  • 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
  • #22785
Closed
Open
Issue created Jan 17, 2023 by Andrei Borzenkov@Player-205

'MkSolo sometimes printed incorrectly in diagnostics

Summary

In some error messages GHC prints 'Solo a instead of 'MkSolo a

Steps to reproduce

{-# LANGUAGE DataKinds #-}
module T where
import Data.Proxy
import Data.Tuple


p :: Proxy ('MkSolo Int)
p = Proxy :: Proxy Int

This code will output

T.hs:9:5: error: [GHC-83865]
    • Couldn't match type 'Int' with ''Solo Int'
      Expected: Proxy ('Solo Int)
        Actual: Proxy Int
    • In the expression: Proxy :: Proxy Int
      In an equation for 'p': p = Proxy :: Proxy Int
  |
9 | p = Proxy :: Proxy Int
  |     ^^^^^^^^^^^^^^^^^^

Expected behavior

'MkSolo should be printed instead of 'Solo

Environment

  • GHC version used:

master branch

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking