blob: fe1c87d608f18be03c87db0ca5eb64c4c7bf3b52 (
plain)
1
2
3
4
5
6
7
8
9
|
{-# LANGUAGE GADTs, DataKinds #-}
module T18802b where
data G a where
MkG :: { fld :: Char } -> G Float
recUpd :: ( Char -> Char ) -> G a -> G a
recUpd f g@(MkG { fld = c }) = g { fld = f c }
|