#1509: Make unboxed tuples more supported
------------------------------+---------------------------------------------
  Reporter:  guest            |          Owner:         
      Type:  feature request  |         Status:  new    
  Priority:  low              |      Milestone:  _|_    
 Component:  Compiler         |        Version:  6.6.1  
  Severity:  minor            |       Keywords:         
Difficulty:  Unknown          |             Os:  Unknown
  Testcase:                   |   Architecture:  Unknown
------------------------------+---------------------------------------------
Unboxed tuples {{{(# a, b #)}}} do not have the same features as boxed
 tuples {{{( a, b )}}}. In particular:

 1) There is no prefix form, {{{(#,#) a b}}} is not equivalent to {{{(# a,
 b #)}}}. We would have to define a collection of such functions in the
 Prelude (see Data.Tuple, for the (,,,,) functions). We'd have to do is to
 make the parser understand {{{(#,,,#)}}}.

 2) Currently GHC does not allow {{{f :: (# a, b #) -> ...}}}, but there's
 no real reason why not; GHC could transform them away just before code
 generation.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1509>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to