Skip to content

Make unboxed tuples more supported

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.

Trac metadata
Trac field Value
Version 6.6.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority low
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC ndmitchell@gmail.com
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information