Parser should suggest -XMagicHash
When using GHCi, this is leading to a weird situation where GHCi is actually suggesting an identifier with # in it, but also rejecting when you actually type it:
➜ ~ ghc-stage2 --interactive
GHCi, version 7.11.20151016: http://www.haskell.org/ghc/ :? for help
λ:1> :m + GHC.Prim
λ:2> :t unsafe
unsafeCoerce# unsafeFreezeArrayArray# unsafeFreezeSmallArray# unsafeThawSmallArray#
unsafeFreezeArray# unsafeFreezeByteArray# unsafeThawArray#
λ:2> :t unsafeCoerce#
<interactive>:1:14: error:
parse error (possibly incorrect indentation or mismatched brackets)
λ:3> :set -XMagicHash
λ:4> :t unsafeCoerce#
unsafeCoerce# :: a -> b
(also tried with 7.10)
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.10.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | low |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |