diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/IndTypesPerf.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_compile/IndTypesPerf.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/IndTypesPerf.hs b/testsuite/tests/indexed-types/should_compile/IndTypesPerf.hs new file mode 100644 index 0000000000..4edcd03988 --- /dev/null +++ b/testsuite/tests/indexed-types/should_compile/IndTypesPerf.hs @@ -0,0 +1,11 @@ + +-- This used lots of memory, and took a long time to compile, with GHC 6.12: +-- http://www.haskell.org/pipermail/glasgow-haskell-users/2010-May/018835.html + +module IndTypesPerf where + +import IndTypesPerfMerge + +data Rec1 = Rec1 !Int + +mkRec1 v = mk $ merge v () where mk (Tagged i :* ()) = Rec1 i |