[GHC] #7776: Can't make operator called ~#

#7776: Can't make operator called ~# --------------------------------------+------------------------------------- Reporter: adrianmay | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.4.1 | Keywords: tilde hash sharp operator Os: Linux | Architecture: x86_64 (amd64) Failure: GHC rejects valid program | Blockedby: Blocking: | Related: --------------------------------------+------------------------------------- In response to: infixl 8 ~# GHC says: parse error on input `~#' although: infixl 8 ~$ infixl 8 !# are both fine. Hugs version September 2006 accepts ~# GHC seems to barf over ~# in any context. (The reason I have this version of GHC is that it comes with the Haskell Platform Ubuntu package right now.) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7776 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7776: Can't make operator called ~# --------------------------------------+------------------------------------- Reporter: adrianmay | Owner: Type: bug | Status: new Priority: normal | Component: Compiler (Parser) Version: 7.6.1 | Keywords: tilde hash sharp operator Os: Linux | Architecture: x86_64 (amd64) Failure: GHC rejects valid program | Blockedby: Blocking: | Related: --------------------------------------+------------------------------------- Changes (by isaacdupree): * version: 7.4.1 => 7.6.1 * component: Compiler => Compiler (Parser) Comment: Fascinating! GHC 7.6.1 also dislikes ~# . I tried operators by typing `( ~# )` in GHCi. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7776#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7776: Can't make operator called ~#
--------------------------------------+-------------------------------------
Reporter: adrianmay | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (Parser)
Version: 7.6.1 | Keywords: tilde hash sharp operator
Os: Linux | Architecture: x86_64 (amd64)
Failure: GHC rejects valid program | Blockedby:
Blocking: | Related:
--------------------------------------+-------------------------------------
Comment(by ian@…):
commit 01efdd6c4b066fbfdf17c6d2b1cad0fd651d334a
{{{
Author: Ian Lynagh

#7776: Can't make operator called ~# ----------------------------------------+----------------------------------- Reporter: adrianmay | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler (Parser) | Version: 7.6.1 Resolution: fixed | Keywords: tilde hash sharp operator Os: Linux | Architecture: x86_64 (amd64) Failure: GHC rejects valid program | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ----------------------------------------+----------------------------------- Changes (by igloo): * status: new => closed * difficulty: => Unknown * resolution: => fixed Comment: Thanks for the report; fixed. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7776#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7776: Can't make operator called ~# ----------------------------------------+----------------------------------- Reporter: adrianmay | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler (Parser) | Version: 7.6.1 Resolution: fixed | Keywords: tilde hash sharp operator Os: Linux | Architecture: x86_64 (amd64) Failure: GHC rejects valid program | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ----------------------------------------+----------------------------------- Comment(by goldfire): I would argue that {{{~#}}} should never be user-visible syntax, as there is no use case for it. In source Haskell, {{{~#}}} is a type constructor of kind {{{k -> k -> #}}} but this type has no values. This certainly isn't blocking anything, but I was quite surprised that {{{~#}}} was available at all in source Haskell. For those of you unfamiliar with {{{~#}}}, that's the type constructor for GHC's internal notion of type equality --- it's an unlifted form of {{{~}}}. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7776#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC