summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_compile/T7237.hs
blob: 8407d8dc5a9fd9a323a49068a15b1b8ee3e3f775 (plain)
1
2
3
4
5
6
7
8
9
10
module T7237 where

import Data.List (foldl')

data SPair = SPair { pX, pY :: Double } deriving (Eq,Show)

data AList = AList { pairs :: [SPair] } deriving Show

rnf' :: AList -> ()
rnf' aList = foldl' (flip seq) () (pairs aList) `seq` ()