id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
9,The code generation fails when dealing with the operations on arrays of pairs.,seanl,tmcdonell,"The code generator used to generate code properly for the operations on arrays of pairs, but it doesn't any more after one of the recent patches.

  Sat Jul 17 13:58:00 EST 2010  support for nested tuples

The attached module can reproduce the problem. [http://hpaste.org/fastcgi/hpaste.fcgi/view?id=27730#a27730 Foo.hs]

The following is the error message that I get:
{{{
seanl@lighthouse:simple$ ghci Foo.hs 
GHCi, version 6.12.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
[1 of 1] Compiling Foo              ( Foo.hs, interpreted )
Ok, modules loaded: Foo.
*Foo> main
Loading package syb-0.1.0.2 ... linking ... done.
Loading package base-3.0.3.2 ... linking ... done.
Loading package pretty-1.0.1.1 ... linking ... done.
Loading package extensible-exceptions-0.1.1.1 ... linking ... done.
Loading package filepath-1.1.0.4 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package old-time-1.0.0.5 ... linking ... done.
Loading package unix-2.4.0.2 ... linking ... done.
Loading package directory-1.0.1.1 ... linking ... done.
Loading package array-0.3.0.1 ... linking ... done.
Loading package containers-0.3.0.0 ... linking ... done.
Loading package bytestring-0.9.1.7 ... linking ... done.
Loading package binary-0.5.0.2 ... linking ... done.
Loading package process-1.0.1.3 ... linking ... done.
Loading package time-1.1.4 ... linking ... done.
Loading package random-1.0.0.2 ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package cuda-0.2.1 ... linking ... done.
Loading package transformers-0.2.1.0 ... linking ... done.
Loading package monads-fd-0.1.0.1 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package fclabels-0.4.2.1 ... linking ... done.
Loading package language-c-0.3.1.1 ... linking ... done.
Loading package accelerate-0.7.1.0 ... linking ... done.
*** Exception: Pattern match failure in do expression at Data/Array/Accelerate/CUDA/CodeGen.hs:111:2-6
*Foo> 
Leaving GHCi.
}}}",defect,closed,major,,CUDA backend,0.7.1.0,fixed,,
