[GHC] #12605: UnboxedSums causes parse error on hash operator e.g. `let (#) = (+)`

GHC ghc-devs at haskell.org
Tue Sep 20 21:02:23 UTC 2016


#12605: UnboxedSums causes parse error on hash operator e.g. `let (#) = (+)`
-------------------------------------+-------------------------------------
           Reporter:  jberryman      |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 {{{
 GHCi, version 8.1.20160920: http://www.haskell.org/ghc/  :? for help
 Prelude> let (#) = (+)
 Prelude> :set -XUnboxedSums
 Prelude> let (#) = (+)

 <interactive>:3:7: error: parse error on input ‘)’
 }}}

 I first noticed this in an import statement:


 {{{
 import Data.Functor.Utils (Max(..), Min(..), (#.))
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12605>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list