Skip to content

UnboxedSums causes parse error on hash operator e.g. `let (#) = (+)`

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(..), (#.))
Trac metadata
Trac field Value
Version 8.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information