[GHC] #10253: Variable name with special characters
GHC
ghc-devs at haskell.org
Tue Apr 7 10:08:54 UTC 2015
#10253: Variable name with special characters
-------------------------------------+-------------------------------------
Reporter: songzh | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple | Blocked By:
Test Case: | Related Tickets:
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Declaring a variable in GHCi with $ . is allowed, but they are not
referable.
I suppose that the parser should impose more restrictions at this.
{{{#!hs
*Main> let a$1 = 10
*Main> a$1
<interactive>:20:1: Not in scope: ‘a’
Prelude> let a.1 = 10
Prelude> a.1
<interactive>:9:1: Not in scope: ‘a’
Prelude> let a%1 = 1
Prelude> a%1
1
Prelude> let a^1 = 1
Prelude> a^1
1
Prelude> a^1 + 1
2
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10253>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list