summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T10856.hs
blob: 6d5ff9d34be9d08c6a192721df0a96052520602a (plain)
1
2
3
4
5
6
7
{-# LANGUAGE ExistentialQuantification #-}
module T10856 where

data Rec a b = Show a => Mk { a :: a, b :: b }

update :: Show c => c -> Rec a b -> Rec c b
update c r = r { a = c }