
#7627: Space in nullary unboxed tuples ---------------------------------+------------------------------------------ Reporter: monoidal | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.6.1 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by igloo): Sounds like the right thing to me, too. I'm not sure what the best way to implement it is, though. Perhaps have a single token for `(##)` and tell the parser what it means? Incidentally, HEAD seems to have the unwanted space now: {{{ Prelude> :t (# #) (# #) :: (# #) }}} and `:i` can't understand the unboxed unit tuple, although it does work for others: {{{ Prelude> :i (##) Top level: Not in scope: `##' Prelude> :i (# #) <interactive>:1:3: parse error (possibly incorrect indentation or mismatched brackets) Prelude> :i (#,#) data (#,#) a b = (#,#) a b -- Defined in `GHC.Prim' }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7627#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler