1 2 3 4 5 6 7 8
{-# LANGUAGE LinearTypes #-} module LinearRecordUpdate where data R = R { x :: Int, y :: Bool } shouldFail :: R %1 -> R shouldFail r = r { y = False }