Skip to content

Unreadable unicode in type-level literals #3115

Closed
@dpwiz

Description

@dpwiz

Your environment

  • ghcup-compiled LSP from a recent-ish master
  • VS Code extension v2.2.1
  • GHC 9.2.4
  • Ubuntu

Steps to reproduce

type family (label :: Symbol) ::: a where
  label ::: a = a

type Example = "привет" ::: Int

x :: Example
x = 4

Hover over 4 to see its type.

Expected behaviour

The label should be preserved since it's a valid Haskell symbol: _ :: "привет" ::: Int.

Actual behaviour

The label escaped into _ :: "\1087\1088\1080\1074\1077\1090" ::: Int.

Capture d’écran du 2022-08-19 15-19-08

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions