google / google/ghc-source-gen

collectModuleName breaks in the presence of MagicHash

Open
#80 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
101
Forks
33
PR merge metrics
No merged PRs in 30d

Description

Consider the perfectly reasonable name under `-XMagicHash`: `Jn#`. This causes an `error`:

```
Unable to parse RdrNameStr: "Jn#"
CallStack (from HasCallStack):
error, called at src/GHC/SourceGen/Name/Internal.hs:106:10 in ghc-source-gen-0.4.0.0-5bO8D09FGq6LIxEy1df7VD:GHC.SourceGen.Name.Internal
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.